I encountered a very strange problem. In fact, I found the problem half a month ago, but since it was left to the TS team to deal with, I never wrote it down. I will make a record today.
Let’s write an html page first to facilitate testing:
Html code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link id="MainCss" type="text/css" rel="stylesheet" href=" http://www.cnblogs.com/Skins/UandMe/style.css " />
<link type="text/css" rel="stylesheet" href=" http://www.mio-tour.com.tw/style/style.css " />
</head>
<body>
aaaaaaaaaIn order to facilitate everyone’s testing
<a href="#">cccccccccccccc</a>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link id="MainCss" type="text/css" rel="stylesheet" href =" http://www.cnblogs.com/Skins/UandMe/style.css " />
<link type="text/css" rel="stylesheet" href=" http://www.mio-tour.com.tw/style/style.css " />
</head>
<body>
aaaaaaaaaIn order to facilitate everyone’s testing
<a href="#">cccccccccccccc</a>
</body>
</html>
After writing, save it as UTF-8 encoding. Then open it with Firefox. If it is normal, it should be orange when the mouse is hovering over cccccc. But it is actually brown. If you open this page with IE, it will be displayed. It's orange.
Then you can download the css file below, save it locally, point the address to it, and then open it with Firefox... Well, it's also orange.
Okay, let's play something weird again. Let's restore the address of the css below to my original address. Then delete the verification line at the top, refresh... How about, let's keep it orange.
Okay, look
.After the effect, let’s summarize the problem: Why can’t Firefox reference the following CSS when XHTML is verified? If there is a problem with the CSS, why can it be used after downloading the CSS locally and pointing it to it? This is weird The problem was accidentally discovered after I released the project. There is no problem under all IEs. I have tried FF2. It works.
How? It’s quite strange. Of course, I have now found the problem: it is on the website’s proxy server.
For the page with standard verification added, apatech agent determined it to be text/html instead of text/css. Therefore, even if it is downloaded, it still cannot be used. And FF is more strictly enforced, so it cannot be executed. .