微信小程序之图片轮播——swiper、在wxss处理文本溢出隐藏
1.图片轮播——swiper
swiper:滑块视图容器,其中只可放置swiper-item组件,否则会导致未定义的行为。
常用选项如下:
属性
类型
默认值
说明
indicator-dots
boolean
false
是否显示面板指示点
indicator-color
color
rgba(0,0,0,.3)
指示点颜色
indicator-active-color
color
#000000
当前选中的指示点颜色
autoplay
boolean
false
是否自动切换
原创
2021-11-14 01:15:34 ·
1318 阅读 ·
1 评论