Universal - CSS class selector

Universal - CSS class selector

The Universal Selector is the * in CSS. Literally the asterisk character. It is essentially a type selector that matches any type. Type meaning an HTML tag like div, body, button, or literally any of the others.

For Example:

* { 
?    margin: 0;
?    padding: 0;
 }        



*.component {? }
        

The specificity of those is exactly the same, as the universal selector hold no specificity value at all.

要查看或添加评论,请登录

社区洞察

其他会员也浏览了