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