<swiper class="swiper-box" indicator-dots indicator-color="#fffa" indicator-active-color="#fff" autoplay circular display-multiple-items> <swiper-item class="swiper-item" wx:for="{{swiper}}" wx:key="index"> <image style="width: 100%;" src="{{item}}" /> </swiper-item> </swiper>
在安卓手机上的圆角边框 .swiper-box { height: 260rpx; text-align: center; overflow: hidden; border-radius: 15px; }
在苹果手机上必须得加 transform: rotate(0deg);才可以圆角边框 .swiper-box { height: 260rpx; text-align: center; overflow: hidden; border-radius: 15px; transform: rotate(0deg); }