Support for CSS pseudo-classes with selector selectors by various browsers

Source: Internet
Author: User
Note: √ means full support
Delta means yes, but some questions exist.
The effect is obviously not supported.

I. Support for CSS pseudo classes:


2. Support for (selector) selectors

After reading the list above, I don't know if you have found a problem. IE6's support for the. class selector turned out to be Delta. I wonder if I didn't find any problems when I used. Class in IE6. Here, how can it be Delta? after reading the instructions, we can see that there is indeed a problem in parsing the double classes. What do I mean? OK.CodeIn IE6 and other browsers respectively.

<! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"/>
<Title> untitled document </title>
<Style type = "text/CSS">
. Red. Green {color: Blue ;}
. Green {color: green ;}
. Red {color: red ;}
</Style>
</Head>
<Body>
<P class = "green red"> test </P>
</Body>
</Html>

If you know a little about the calculation of CSS priority, you should know that the color of test in P should be blue ,. red. green has a priority of 0020 ,. red has a priority of 0010. That's right. It is indeed blue in other browsers, But it turns red when you run it in IE6. In IE6, the style of the last class overwrites the style of the full class.AlgorithmYes. This is why the Technical Support for. Class in the above table is Delta.

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.