CSS learning process - (a) detailed common selector: id class tag grouping offspring *

Define the location of the style properties
1. tag style attribute
2. Write in a style tag
3. defined in the CSS file
Here Insert Picture Description

Here Insert Picture Description
Here Insert Picture Description
Selector : browser by choosing to add CSS styles to meet the conditions of HTML elements
id selectors
Here Insert Picture Description
Here Insert Picture Description
class selectors
Here Insert Picture Description
tag selector
Here Insert Picture Description

// priority
// the style property is not repeated is not overwritten
//! important priority will be to do the upgrade, this selector-based
Here Insert Picture Description
bank selector
Here Insert Picture Description
descendant selectors
Here Insert Picture Description
wildcard selector

/ Wildcard selector matches any HTML elements in the HTML document, the following syntax: /

*{
	declaration1;
	declaration2;
}

Pseudo-classes

Guess you like

Origin blog.csdn.net/qq_44724446/article/details/90371296