收藏
回答

input组件,键盘弹出bug?

手机:iphone xsmax和iphone XR,input组件弹出键盘时自动上移距离过大,安卓系统正常

代码:

<view class="nyy-content">

        <view style="width: 100%;height: 50px;background: #007AFF;">1</view>

        <view style="width: 100%;height: 50px;background: #4CD964;">2</view>

        <view style="width: 100%;height: 50px;background: #007AFF;">3</view>

        <view style="width: 100%;height: 50px;background: #4CD964;">4</view>

        <view style="width: 100%;height: 50px;background: #007AFF;">5</view>

        <input type="text"  placeholder="请输入内容" cursor-spacing="0"/>

<input type="text" placeholder="请输入内容" cursor-spacing="0"/>

<input type="text" placeholder="请输入内容" cursor-spacing="0"/>

<input type="text" placeholder="请输入内容" cursor-spacing="0"/>

<input type="text" placeholder="请输入内容" cursor-spacing="0"/>

</view>

css:

input{

height: 30px;

border: 2px solid #0069D9;

padding-left: 16px;

width: calc(100% - 20px);

margin-top: 20px;

}

回答关注问题邀请回答
收藏

2 个回答

登录 后发表内容
问题标签