修改小程序指示点距离底部的位置

时间:2025-04-25 07:49:29
<view class="swiper_wrap">
      <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}">
        <swiper-item wx:for="{{4}}" wx:key="index">
          <image src="/static/imgs/banner.png" mode="aspectFill" />
        </swiper-item>
      </swiper>
    </view>

.swiper_wrap .wx-swiper-dot {

  background: #ffffff;

  bottom:10rpx;

}

.swiper_wrap  .wx-swiper-dot-active {

  background: #0086FF;

}

/* 指示点距离底部的距离 */

.swiper_wrap .wx-swiper-dots.wx-swiper-dots-horizontal {

  margin-bottom: 5rpx;

}