- 优先级就近原则,同权重情况下样式定义最近者为准
- 载入样式以最后载入的定位为准
- 优先级为:
!important > id > class > tag; !important
比 内联优先级高
CSS优先级算法如何计算?
最新推荐文章于 2021-06-17 11:37:08 发布
!important > id > class > tag; !important
比 内联优先级高