swiper标签里放置多行输入框auto-focus属性,页面卡在中间
<swiper class=‘swiper’ bindchange=‘swiperChange’ current=’{{currentTab}}’>
<swiper-item>
<scroll-view scroll-y=‘true’ style=‘height:100%’>
<view class=“firstPage”>Taurus</view>
</scroll-view>
</swiper-item>
<swiper-item>
<scroll-view scroll-y=‘true’ style=‘height:100%’>
<textarea auto-focus placeholder=“填写您的答案…”></textarea>
</scroll-view>
</swiper-item>
</swiper>
page{ width : 100% ; height : 100% ; } .swiper{ margin : 2% ; width : 96% ; height : 90% ; } scroll-view{ margin-bottom : 80 rpx; } .firstPage{ text-align : right } |
1 回复
麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)