标签:box tab item red style wip abi width span
swiper中轮番播放三个色块,父容器的class为"container"时不能显示出来,现象为白屏,当把container改为其它即可,container应该为swiper的保留字符,
//container改为其他,如:mycontainer
<view class="container">
<swiper class="tab-box" current="{{currentTab}}" duration="300" bindchange="switchTab"> <swiper-item wx:for="{{[0,1,2,3,4,5,6,7,8]}}" wx:for-item="tabItem" wx:for-index="idx" wx:key="idx" class="tab-content"> {{tabItem}} <view style="width:100px;height:100px;border:1px solid red; ">哒哒哒哒哒哒</view> </swiper-item> </swiper>
</view>
标签:box tab item red style wip abi width span
原文地址:https://www.cnblogs.com/QW-lzm/p/12940759.html