css中两个class之间空格和没空区别

有空格,代表:后代迭代选择器,

没有空格,代表:同时包含class

比如:

.swiperA .swiperB .swiper{

background-color:red;

}   

.swiperA .swiperB.swiper{

background-color:blue;

A区域背景色会是红色

扫描二维码关注公众号,回复: 14756995 查看本文章

B区域背景色是蓝色

猜你喜欢

转载自blog.csdn.net/qq_23135259/article/details/129008261