ios 弹起软键盘position: fixed;失效
生活随笔
收集整理的這篇文章主要介紹了
ios 弹起软键盘position: fixed;失效
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
<view class="stores-top">
?? ??? ??? ??? ?<input type="text" placeholder-class="placeholder" v-model="shop" placeholder="店舗名または住所を入力してください" />
?</view>
.stores-top {
?? ??? ?width: 100%;
?? ??? ?height: 88upx;
?? ??? ?position: fixed;
?? ??? ?top: 0upx;
?? ??? ?left: 0upx;
?? ??? ?right: 0upx;
?? ??? ?z-index: 1;
?? ?}
此時點擊input框彈起軟鍵盤,固定在頁面頂部的輸入框會隨著頁面整體滑動。
解決:
在pages.json中加入
"style": {
?? ??? ??? ??? ?"softinputMode": "adjustResize"
?? ??? ??? ?}
總結(jié)
以上是生活随笔為你收集整理的ios 弹起软键盘position: fixed;失效的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 如何包含鼠标指针(箭头)截图或者录屏?
- 下一篇: Java 支付宝手机网站支付下单 支付回