css| Tutorials | Style sheets in general, the Declaration of a stylesheet is divided into selectors (selector) and blocks {} (block), which contain attributes (properties) and the value of the property (value), and the basic format is as follows:
Selector {property: value}
Other format 1:
Selector 1, selector 2, selector 3 {Property 1: Value 1; Property 2: Value 2; property 3: Value 3}
Sometimes multiple selectors will use the same settings, in order to simplify the code, we can set the style for them, and add "," between multiple selectors to separate them.
When you have more than one attribute, you must separate the two attributes with ";".
Other Format 2:
Selector 1 Selector 2 {Property 1: Value 1; Property 2: Value 2; property 3: Value 3}
and format 1 are very similar, but only less between the selector ",", but the effect is very different. Represents a style rule that is set when the selection character 2 includes content that is included in the selector 1.