The role of CSS

Source: Internet
Author: User
# Content {
Float: left;
Padding: 10px;
Margin: 20px;
Background: # FFF;
Border: 5px solid #666;
Width: 400px;/* ie5win fudge begins */
Voice-family :""}"";
Voice-family: Inherit;
Width: 370px;
}
HTML> body # Content {
Width: 370px;/* ie5win fudge ends */
}

Child selectors in css2)
E1> E2 select all E2 as E1 sub-objects

Expand it.

Css1 version E1 E2 Selects all E2 contained by E1. That is, e1.contains (E2) = true
Css2 versions E1 + E2 select all E2 objects following the object E1
Css1 versions E1, E2, and E3 apply the same definition to multiple delimiters, which can be separated by commas and grouped
Css2 * select all types of single objects in the document directory tree (DOM)

You can try it by yourself :)

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.