小程序中使用 wx-swiper-dot和wx-swiper-dot-active选择器
H5中使用uni-swiper-dot和uni-swiper-dot-active选择器
.swiper {
height: 408px;
margin-bottom: 28rpx;
::v-deep .uni-swiper-dot {
background: #e7e7e7;
&.uni-swiper-dot-active {
background: #b1b1b1;
}
}
// #ifdef MP-WEIXIN
/deep/ .wx-swiper-dot {
// 指示点元素默认样式
background-color: #e7e7e7;
width: 15rpx;
height: 15rpx;
border-radius: 50%;
}
/deep/ .wx-swiper-dot-active {
// 指示点元素激活(当前选中)状态样式
background-color: #b1b1b1;
width: 15rpx;
height: 15rpx;
border-radius: 15rpx;
}
//#endif
}