Firefox does not work under the CSS

Source: Internet
Author: User
Tags html page

I met a very strange problem, in fact, half a month ago to find the problem, but due to the TS group to deal with, so, has not been written down, today to do the record it.

Let's start by writing an HTML page 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 ">
<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"/>
<body>
AAAAAAAAA in order to facilitate the testing of everyone
<a href= "http://www.bianceng.cn/index.php#" >ccccccccccccc</a>
</body>
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<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"/>
<body>
AAAAAAAAA in order to facilitate the testing of everyone
<a href= "http://www.bianceng.cn/index.php#" >ccccccccccccc</a>
</body>
Write it and save it as UTF-8 encoded. Then use Firefox to open it. If normal, the mouse hover over the CCCCCC should be orange. But it's actually brown. If you open this page with IE, it will show an orange color.

Then you can download the following CSS file, save it locally, then address it, and then open it with Firefox ... It's orange, too.

All right, let's play a weird one. We restored the following CSS address to my original address. And then the top row of the validation delete, refresh ... How about, or orange bar.

Well, look at the effect, summed up the question: Why Firefox can not be validated XHTML in the case of the following CSS reference, if there is a problem with CSS, then why the CSS download to the local point it, but it can be used? This bizarre problem is that I stumbled upon when I published the project. All IE have no problem, ff2.x,ff3.x have tried, all have problems. Using Firebug to see that CSS has actually been downloaded, but it does not work.

It's weird. Of course, I've found the problem now: on the proxy server of the website.

With a standard validated page, the Apatech agent determines it for text/html, not text/css. So, that is, download down, still can not use. and FF is more strictly enforced, so, then can not be implemented.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.