p{color:red!important;}
p.first{color:green;}
span{color:blue;}
为什么span优先级比!important还高呢?
亲们!!!!!!!解答
<style type="text/css">
p{color:red}
p.first{color:green;}
span{color:blue;!important;}
.first{color:block;}
</style>你这样试试,你在p标签上写的important和span标签有什么关系?
important 只是针对P
P里面的仍然影响不到的