CSS style Sheets

Source: Internet
Author: User

CSS (cascading style Sheets) is the style sheet that is commonly said. CSS is a technology to beautify the Web page by using CSS can easily and flexibly set the appearance of different elements of the page properties, so that the appearance of the page to achieve a better effect.

    • The definition and use of CSS style sheets

Basic syntax for defining selectors: selector{Property: Property value; Property: property value; ...}

Description:

(1) CSS selector can be divided into 3 types

    • The flag selector, which defines the selector through the HTMML tag.
    • Class selector, using the class definition selector.
    • The ID selector, which defines the selector using the ID.

(2) The attribute and value are separated by colons, with semicolons spaced between them and surrounded by curly braces.

P{background-color:blue;color:red}//define tag Selector p

. cs1{font-family: XXFarEastFont-Xingkai; font-size:15px}//define category selector. CS1

#cs2 {Color:yellow}//define ID selector #cs2

CSS style Sheets

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.