首页 > 试题广场 >

样式权重的优先级下面正确的是?

[单选题]
样式权重的优先级下面正确的是?
  • !important > 行内样式(style) > id > class > tag
  • 行内样式(style) > !important > id > tag > class 
  • id > 行内样式(style) > !important > class > tag
  • id > !important > 行内样式(style) > tag > class
!important 放到哪都会改变优先级的,就算JS代码也不会改变优先级
发表于 2022-04-22 12:55:09 回复(0)