06: The key points in html--css

Three forms of style in HTML

  1. Write directly in the tag style attribute

  2. Write in the head

  3. Write in the file and import it with link

        <link rel="stylesheet" href="路径">

 

Three choices of selector

  1. The id selector (#id)

  2. The class selector (.class)

  3. Tag selector (div)

  4. Level selector. (Span div)

  5. Combination selector. That is, multiple styles use the same style content, separated by commas

   6. Attribute selector, attributes are in parentheses

 

css priority

  There are multiple styles in a label, and if the styles have the same style, it will involve the priority problem. The interpreter is looking from bottom to top , so the principle of priority based on css

 

 

 

 

【Finish】

Guess you like

Origin www.cnblogs.com/yeyu1314/p/12702903.html