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