First, the concept of CSS
1. Demand:
Set the style of the page label: width, height, background color, position ...
Used to layout or beautify the Web page, in other words, to write a set of beautification mode, applied to a variety of pages without one to write
2. Concept:
CSS Cascading Style Sheets
English full name: Cascading Style Sheets
Browser interpretation language: Allow the browser to perform the interpreted language
HTML CSS
Case insensitive: lowercase
The organization of the Consortium
3. CSS Syntax:
Selector 1{
Property name 1: attribute value 1;
Property Name 2: attribute value 2;
...
...
}
Selector 2{
Property Name 1: Property value 1:
Property Name 2: attribute value 2;
...
...
}
Selector: The HTML tag I'm looking for (element)
Attribute 1: Property value 1:width:20px
Not for inline styles
4. CSS Annotations
HTML annotations
CSS Comments/* Comments Content *///can also sublime shortcut keys: CTRL+/5, supplemental dhtml=html (specified Element) +css (element size position color) +javascript (manipulating page elements) content exclusive row, background color rowcontentDo not monopolize a row, background color follows content is a row-level container label, can not contain pictures, headings, paragraphs, etc., can only contain text content (they exist just for the style) two, CSS style classification 1, inline style only for inline
content
2, The inline style works on this page and can also be linked to HTML Variety Characteristics:
1, egg fish: Egg fish .....
2, Dragon Eye: Dragon Eye ...
3, High head: High head .....
3, external styles acting on multiple pages introduce inline style CSS file link Three, selector 1, HTML selector