CSS3-inheritance and priority

Inheritance

font-size will be directly inherited from the parent tag

 

priority

The specific usage of !important is to add it directly to the code, such as color:red!important;

Guess you like

Origin blog.csdn.net/Mitchell_Donovan/article/details/113528148