有空格,代表:后代迭代选择器,
没有空格,代表:同时包含class
比如:
.swiperA .swiperB .swiper{
background-color:red;
}
.swiperA .swiperB.swiper{
background-color:blue;
}
A区域背景色会是红色
扫描二维码关注公众号,回复:
14756995 查看本文章
B区域背景色是蓝色
有空格,代表:后代迭代选择器,
没有空格,代表:同时包含class
比如:
.swiperA .swiperB .swiper{
background-color:red;
}
.swiperA .swiperB.swiper{
background-color:blue;
}
A区域背景色会是红色
B区域背景色是蓝色