在真机上swiper的几个swiper-item同时显示了,为什么会这样?
< swiper duration = "{{duration}}" vertical = "{{true}}" bindchange = "changeSubject" current = "{{current}}" class = 'swiper-slide-active' display-multiple-items = "1" skip-hidden-item-layout = "{{true}}" > < block wx:for = "{{subjectList}}" wx:key = "*this" > < swiper-item > < view class = 'video' > < video bindtap = 'clickVideo' id = "video_{{item.id}}" autoplay = "{{item.play}}" show-fullscreen-btn = "{{false}}" show-center-play-btn = "{{true}}" controls = "{{false}}" loop = "{{true}}" src = "{{item.coverUrl}}" binderror = "videoErrorCallback" bindplay = "bindPlay" bindpause = "bindpauseFun" bindended = "videoEndPlay" ></ video > </ view > </ swiper-item > </ block > </ swiper > |
运行的效果就是如果有三个video,那么三个都同时显示出来了,但是在开发工具的模拟器上又是好的。
我的高度设置了225px,video控件跟swiper都是这个高度!为什么呢?