Home  >  Article  >  Web Front-end  >  CSS样式的问题: .calss.class{color:Red}_html/css_WEB-ITnose

CSS样式的问题: .calss.class{color:Red}_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:50:521170browse

style>
.d1.d2{ color:Red}   /*请问这个.d1.d2是代表什么意思?实在不解(注意:.d1与.d2中间没有空格隔开的哦)*/



AAAA


回复讨论(解决方案)

就是同一个元素的class属性中要同时有d1和d2再个类选择器,样式才生效。


AAAA

 
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn