您可以将另一个类添加到元素中,而不是重写,这样您就有了额外的能力。例如:
HTML
<div ></div>
CSS
//only style for the first stylesheet.style1 { width: 100%; }//only style for second stylesheet.style2 { width: 50%; }//override all.style1.style2 { width: 70%;}
您可以将另一个类添加到元素中,而不是重写,这样您就有了额外的能力。例如:
HTML
<div ></div>
CSS
//only style for the first stylesheet.style1 { width: 100%; }//only style for second stylesheet.style2 { width: 50%; }//override all.style1.style2 { width: 70%;}