手机: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;
}
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
你好,请提供能复现问题的简单代码片段
https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html
请学会如何「提问」(👈戳我)