苹果手机网页弹窗中input失去焦点的时候造成页面上移

问题:苹果手机网页弹窗中input失去焦点的时候造成页面上移

解决:

<input type="text" class="userNameInput" v-model="username" placeholder="请输入账号或手机号" @blur="coverScroll">

<input type="password" class="passInput" v-model="password" placeholder="请输入密码" @blur="coverScroll">

//苹果手机获取焦点时屏幕上移

coverScroll(){

     window.scroll(0, 0);

},

二手闲置小程序 免费信息发布系统功能源码(小程序+php后台管理)

https://blog.csdn.net/MPQ1314/article/details/87162363

电商商城小程序 小程序+php后台管理系统功能源码

https://blog.csdn.net/MPQ1314/article/details/103723983

发布了40 篇原创文章 · 获赞 22 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/MPQ1314/article/details/100572487