What does it mean to be together: what does two classes in a CSS rule mean?

Source: Internet
Author: User

Like what:
. c1.c2
{
Text-decoration:underline;
}
In the selector. C1 and. C2 directly together, no space in the middle, no commas, what does that mean? Look at an example:





This is Red


This is Italic


Here are red, italic, underline



The result has been directly described through the text, the original. C1.C2 represents the response to this style rule if the two classes are used in one label, regardless of the order, regardless of whether or not there are other classes.
However, in IE, the second paragraph, in addition to the italic and underline, shows that it also regards. C1.c2 as a. C2.
So, for compatibility reasons, try not to use a selector like C1.C2.
This article links http://www.cxybl.com/html/wyzz/CSS/20120601/27374.html

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.