首页 > 试题广场 >

下列 CSS 优先级描述正确的是?

[单选题]
下列 CSS 优先级描述正确的是?
  • id > !important > class > tag > *
  • !important > id   > class > tag > *
  • !important > id > class > tag
  • 内联 > !important > id > class > tag
B id后面多了个空格,这也算错误?
发表于 2021-09-12 16:47:46 回复(0)
不是通配符的优先级最低嘛,为啥B不能选
发表于 2021-03-24 13:48:46 回复(0)
为啥不能选B?我还想了老半天决定还是选长点的结果选C

发表于 2021-04-24 15:45:59 回复(0)
im!important无穷大>行内样式> id>类、伪类、[]属性、结构伪类>元素、伪元素>继承、*
发表于 2021-03-23 21:59:49 回复(0)