<style type="text/css">
p{
color:green !important; /*让权重无限大*/
}
.par1{
color: red ;
}
</div>
p{
color:green !important; /*让权重无限大*/
}
.par1{
color: red ;
}
</style>
<div>
<p class="par1">段落</p></div>
只有加!important属性的才起作用,继承来的,权重还是0