最优解决办法:样式穿透
sass和less的样式穿透:/deep/
#father /deep/ .swiper-pagination-bullet-active {
color:#fff;
background: #ff51d6;
}
stylus的样式穿透:>>>
#father >>> .swiper-pagination-bullet-active {
color:#fff;
background: #ff51d6;
}
sass和less的样式穿透:/deep/
#father /deep/ .swiper-pagination-bullet-active {
color:#fff;
background: #ff51d6;
}
stylus的样式穿透:>>>
#father >>> .swiper-pagination-bullet-active {
color:#fff;
background: #ff51d6;
}
本文标题:解决vue-awesome-swiper 组件内设置样式失效问题
本文链接:https://www.haomeiwen.com/subject/kdjfgftx.html
网友评论