The birthday of the jquery family has finally been well done. after a busy day, I am very tired.
Finally, you can sit down and stay idle. the CSS weight you pay attention to before the entire point.
In CSS, a 4-digit number is used to represent the weight.
The specific weights are described as follows:
The inherited style: 0000
Inline style: 1000
Sub-selector: 0000
Common selector: 0000
Attribute selector: 0010
Pseudo-class selector: 0010
Pseudo element selector: 0010
Type selector: 0001
Class selector: 0010
The maximum weight is displayed first.
I have been paying little attention in the past. Recently, I suddenly found that in some new projects, CSS weights are required for seamless integration.
If it is big, it cannot be displayed at all.
Well, write it down later when you pay more attention to it.
Converting from jquery http://www.jqueryba.com/267.html