改写框架样式时经常会用到,记录一下。
css中选中多个类名的元素:
<div class="a b c d">
<div class="e f"></div>
</div>
<style>
// 选中多个类名的元素
// 中间无空格
.a.b.c.d{
color:white;
}
// 选中多个类名下一级的多个类名的元素
// 中间有个空格
.a.b.c.d .e.f{
color:white;
}
</style>
jquery选中多个类名的元素:
$('.a.b.c.d').css('color','white');