紧挨在一起
<a class="glyphicons white no-js cogwheel" href="#" target="_blank"><i></i></a>
/*当有元素同时包含 "glyphicons" 和 "white" 俩个class类名的style*/
.glyphicons.white i:before {
color: #fff;
}
空格隔开
css中class后面跟两个类,这两个类用空格隔开,那么这两个类对这个元素都起作用,如果产生冲突,那么后面的类将替代前面的类
至于逗号,它应用一个规则到多个类
像这样
.blueCheese, .blueBike {
color:blue;
}
它的功能等同于:
.blueCheese { color:blue }
.blueBike { color:blue }