1181 shaares
14 private links
14 private links
What is CSS selector specificity/特异性/优先级?
If an element is targeted by multiple selectors, browser use the specificity of the selector to determine which styling to apply. Each selector has a specificity that is determined by what you use in that selector: elements, ID's, classes etc.