About CSS multi-class selectors under IE6

Source: Internet
Author: User
The notation for multi-class selectors. For example:

#my. c1.c2 {color:red;}
. c1.c2 {color:red;}

These are supported by browsers such as Ie7+/ff/opera/safari.

In IE6, however, the latter class name overrides the previous class name, that is, the above example is IE6 understood as:

#my. c2 {color:red;}
. c2 {color:red;}

Similarly:

#my. c1.c2.c3 {color:red;}
IE6 understood as #my. c3 {color:red;}
. c1.c2.c3 {color:red;}
IE6 understood as. c3 {color:red;}

So when developing a CSS effect with multiple classes, pay attention to the IE6 problem. The best way to do this is not to use the form of a class combination.

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.