例如我有2个css文件
在一个css文件中我有样式
a{color: blue;}
在第二个文件中我有
a{color: red;}
这些我想申请我的html文件
<div>
<a>first file style </a>
</div>
<div>
<a>second file style </a>
</div>
请建议,我怎样才能得到...提前致谢
最佳答案
设置类
HTML
<div>
<a class="blue">first file style </a>
</div>
<div>
<a class="red">second file style </a>
</div>
CSS
a.blue{color: blue;}
a.red{color: red;}
关于html - CSS需要申请html文件的不同部分,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27839262/