CSS Styles
CSS usage: 3 kinds of one: direct style sheet such as <p style= "color:red;" > This is a paragraph </p> two: internal style sheet such as: <style>p{color:red;} </style> Three: External style sheet such as: <link rel= "stylesheet" href= "The path name of the external CSS style" type= "Text/css"/>
Style sheet notation:
1. Paragraphs and other tags directly in <style>p{color:red;} Used in </style>
2.ID selector: You can apply a style to the specified ID, such as <style> #p {color:red;} </style> id= "P" in the body of the application font is red
3. Class selector: Can be applied to multiple identical styles such as <style>.tt{color:red;} </style> for body all class= "TT" Application font is red
4.<style>.tt,.aa{color:red;} </style> set font red for class= "AA" or class= "tt"
5.<style>p. aa{color:red;} </style> find the class= "AA" under paragraph p and set the font to red
6.<style>p.aa{color:red;} </style> find class= "AA" in paragraph p and set the font to red
Width Wight Height 100% font size: text-size:14px font color: text-font:red; Font type: text-family: "Microsoft Ya Hei"
CSS style Beginner