id selector> selector class> element selectors
rule: weight value selector weight expressed as four parts, denoted by 0,0,0,0.
* Wildcard weight of 0,0,0,0
tag selector, pseudo-element selector weight is 0,0,0,1
class selector, attribute selectors, right pseudo-class selector weight 0,0,1 , 0
ID selector 0,1,0,0 weight is
the weight of exercise style 1,0,0,0
! weight to weight imporatant ∞
Significant weight selector cover weights small selectors
same weights selector, behind the front cover
stacked selector according to their weights result of the addition, large small covered
! Right imporatant the heaviest, did not have robbed