选择器的权重,优先级
| 选择器 | 权重 |
|---|---|
| 继承或者 * | 0.0.0.0 |
| 类选择器,伪类选择器 | 0.0.1.0 |
| ID选择器 | 0.1.0.0 |
| 行内样式 style=“” | 1.0.0.0 |
| !important 重要 | 无穷大 |
| a:hover | 0.0.1.1 |
| 属性元素 | 0.0.1.0 |
| 结构选择器 | 0.0.1.2 |
| 伪元素选择器 | 0.0.0.1 |
本文地址:http://tthinl.3k9e.top/html/10d48899501.html
版权声明
本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。