1. 程式人生 > >小程序swiper指板點樣式修改

小程序swiper指板點樣式修改

radi splay clas space pac borde justify BE nbsp

  1. swiper(class名).wx-swiper-dots.wx-swiper-dots-horizontal{ //距離底部高度
  2. margin-bottom: 2rpx;
  3. }
  4. swiper(class名) .wx-swiper-dot{ //指點寬高樣式
  5. width:40rpx;
  6. display: inline-flex;
  7. height: 10rpx;
  8. margin-left: 20rpx;
  9. justify-content:space-between;
  10. }
  11. swiper(class名) .wx-swiper-dot::before{ //指點樣式
  12. content: ‘‘;
  13. flex-grow: 1;
  14. background: rgba(255,255,255,0.8);
  15. border-radius: 8rpx
  16. }
  17. swiper(class名) .wx-swiper-dot-active::before{   //被選中時樣式
  18. background:rgba(244,0,0,0.8);
  19. }

小程序swiper指板點樣式修改