【CSS】Intermediate5:Specificity

1.More Specific=Greater Precedence =>nested selectors

2. the selectors are the same then the last one will always take precedence

3.Calculating Specificity

ID Selector =100

class Selector=10

HTML Selector=1

原文地址:https://www.cnblogs.com/yzhen/p/3659951.html