Frog Frog Recommended: Priority Demonstration of CSS Style Table
It can be seen that the validity of the direct definition tag style is the lowest, followed by "." Defined pseudo-class,
Once again, it is used to define the label to add a pseudo class (similar to the writing of H2.MYCLASS {Color: Blue}), the highest level is the CSS style defined by id->
H1 {color: red;}
.myclass {color: Green}
H2.MYCLASS {color: blue}
#myid {color: brown}
Style>
HEAD>
This is a red first title. H1>
The text in the P tab in the "MyClass" pseudo-class is green. P>
But the second title in the "Myclass" class is blue because h2.myclass {color: blue} Rewinds myclass pseudo. H2>
The text identified by "MyID" is brown, this is the highest level. P>
Body>
Html>