给父标签设置一个id,例如父标签id="parent"
在sass/less中使用/deep/样式穿透
#parent /deep/ .swiper-pagination-bullet{
background-color: 'red';
}
在stulys中使用:>>>实现样式穿透
#parent >>> .swiper-pagination-bullet-active {
border-radius: 'unset';
}
vue中实现样式穿透
阅读 9
2023-08-23
给父标签设置一个id,例如父标签id="parent"
在sass/less中使用/deep/样式穿透
#parent /deep/ .swiper-pagination-bullet{
background-color: 'red';
}
在stulys中使用:>>>实现样式穿透
#parent >>> .swiper-pagination-bullet-active {
border-radius: 'unset';
}
相关推荐
精彩评论(0)