How to use css Union Selector
This article mainly introduces how to use the css union selector, the article is very detailed, has a certain reference value, interested friends must read it!
Css union selector
Description:
If some selectors define the same style, you can use the union selector to make the code more concise.
Union selectors are connected by individual selectors and are usually used for collective declaration.
Any selector (including tag selector, class selector, id selector, etc.) can be used as part of the union selector.
Memory skills:
Union selectors are usually used for collective declarations, separated by commas, and all selectors perform the following styles, and commas can be understood as "and".
For example:
.one, p, # test {color:red;}
Indicates that the class selector .one tag selector p id selector # test executes the style with a red color.
Css union selector h4 pje div {color: green; font-size: 19px;} Prince Nalan
An inch of Acacia in the corridor
The falling moon becomes solitary.
The back lamp and the moon are overcast.
It has been a trail for ten years and more than ten years are all the contents of this article entitled "how to use css Union Selector". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!