How to use the CSS id selector
This article mainly explains "how to use CSS id selector". Friends who are interested may wish to have a look. The method introduced in this paper is simple, fast and practical. Let the editor take you to learn how to use the CSS id selector.
A single selector
The id determiner can independently promote influence, even if it is not used to create a derivative determiner:
# sidebar {border: 1px dotted # 000; padding: 10px;}
Following this rule, an element with an id of sidebar will have a black dotted border that is pixel wide and will be surrounded by a 10 pixel wide inner margin (padding, internal vacancy). Older versions of Windows/IE browsers will probably ignore this delineation unless you rate the boundary of the element to which the determiner belongs:
Div#sidebar {border: 1px dotted # 000; padding: 10px;} at this point, I believe you have a better understanding of "how to use the CSS id selector". You might as well do it in practice! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!