We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
解决css规则不生效问题
一条样式规则的整体权重包含四个独立的部分 : [A、B、C、D]
逐级比较,同级比数量
!important > 内联 > ID > 类 = 伪类 = 属性 > 标签(元素) = 伪元素 > 通配符
!important根本没有结构与上下文可言,但是得知道怎么覆盖!important规则 : id选择器的important能覆盖class选择器的important
!important
无论多少个class组成的类选择器,都没有一个ID选择器权重高,所以一般权重是在一个等级上才有可比性,在这里量变不能引起质变。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
css权重
权重的有什么用
解决css规则不生效问题
权重的五个等级
逐级比较,同级比数量
权重的使用规则
The text was updated successfully, but these errors were encountered: