小程序引用官方swiper组件和案例,使用banner图的大小比例建议多少呀?

发布于 6 年前作者 xiuying19325 次浏览最后编辑 6 年前来自 ask

小程序引用官方swiper组件和案例,使用banner图的大小比例建议多少呀?

<view class=“page-section page-section-spacing swiper”>

<swiper indicator-dots=“{{indicatorDots}}” autoplay=“{{autoplay}}” interval=“{{interval}}” duration=“{{duration}}”>

<block wx:for=“{{imgUrls}}” wx:key=“*this”>

<swiper-item>

<image src=“{{item}}”  mode=‘aspectFill’  />

</swiper-item>

</block>

</swiper>

</view>

1 回复
liping
liping1 楼6 年前

肯定建议满宽度呀~高度的话,就随便了吧