解决vue-awesome-swiper 组件内设置样式失效问题
2018-09-06 本文已影响0人
小学生江止丶
最优解决办法:样式穿透
sass和less的样式穿透:/deep/
#father /deep/ .swiper-pagination-bullet-active {
color:#fff;
background: #ff51d6;
}
stylus的样式穿透:>>>
#father >>> .swiper-pagination-bullet-active {
color:#fff;
background: #ff51d6;
}