解决方案:
给父标签设置一个id,例如父标签id=“parent”
在sass/less中使用/deep/样式穿透
#parent /deep/ .swiper-pagination-bullet{
background-color: 'red';
}
在stulys中使用:>>>实现样式穿透
#parent >>> .swiper-pagination-bullet-active {
border-radius: 'unset';
}
转载自:https://www.cnblogs.com/zhang-jiao/p/11137695.html