Github Pages Blog Basic Selector
- Tag Selector
}
- Category
‘
, the conflict takes the former
- ID Selector
}
Composite selector: Two or more selectors that connect in different ways
- Intersection "' H3.class_name {...} The first one must be a tag selector, the second must be (category selector) or (ID selector), no space in the middle, must be written continuously
- and set selector aselector, b selector ismore than one selector
- Descendant Selector
div p {/* div below P, including all Descendants */} 'Direct descendants of the Div>p ' div
CSS inheritance contains small containers that inherit the style style of the large container that contains it
```
AB Cd
h1{color:red; text-decoration:underline;} em {color:blue;} As a result, EM inherits the H1 underline.
CSS Precedence
Inline style (style=) > ID style (#id) > class style (. Class) > Markup Style (div)
Two class conflicts, take the former