swiper:滑块视图容器

轮播图容器:里面只能放swiper-item

使用:
<swiper>:铺满宽度
   <swiper-item>:铺满宽度
        //水平铺满解决方案:
       <image src="1"></image>:with:100% + mode="widthFix"
   </swiper-item>
<swiper-item>
       <image src="2"></image>
   </swiper-item>
<swiper-item>
       <image src="3"></image>
   </swiper-item>
<swiper-item>
       <image src="4"></image>
   </swiper-item>
</swiper>

swiper常用属性:
指示器:
indicator-dots
indicator-color="blue"
indicator-active-color="red"
自动滚动:
autoplay
interval="1500"
回到第一张:(衔接滑动)
circular
posted @ 2022-11-21 15:08  Cherishe  阅读(52)  评论(0)    收藏  举报