admin管理员组

文章数量:1611397

<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"
            }

本文标签: 键盘iosfixedPosition