// HTML <view class="uenf"> <swiper indicator-dots='true'indicator-color='#ccc'indicator-active-color='#333'> <swiper-item> <image src="/images/06.png"></image> </swiper-item> <swiper-item> <image src="/images/07.png"></image> </swiper-item> <swiper-item> <image src="/images/08.png"></image> </swiper-item> <swiper-item> <image src="/images/09.png"></image> </swiper-item> </swiper> </view> // CSS .uenf{ border-radius: 30rpx; /* background-color: #ccc; */ } swiper{ height: 400rpx; margin:20rpx; border-radius: 30rpx; overflow: hidden; } swiper image{ width: 100%; height: 100%; border-radius: 30rpx; } 注意图片路径 还有 .uenf中的背景颜色进行验证,容易误导...
swiper 轮播图圆角滑动变会变成直角然后再回到圆角你好,我用swiper 实现轮播图 swiper圆角 图片滑动的时候会先变成直角然后变成圆角,怎么解决?
2020-06-02