CSS Specificity--CSS特性、权重、优先级---CSS specificity规则、
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> CSS Specificity As mentioned above, CSS styles follow an order of specificity and point values to determine( 确定) when styles override(覆盖) one another or take precedence(优先). Nettuts recently had a nice article in which the point values for css were explained. They are like so: Elements - 1 points Classes - 10 points Identifiers - 100 points Inline Styling - 1000 points When in doubt, get more specific with your style declarations( 声明). You can also use the !important declaration for debugging( 调试) purposes if needed. Read more about css specificity: HTML Dog