<input placeholder="验证码" type="tel" v-model="verify" maxlength="4" @input="change()" @focus="focusIn" @blur="blurIn" /> focusIn() { // ios键盘弹出底部留白问题 const body = document.querySelector('.phone-bind') // input所在的容器 body.scrollTop = body.scrollHeight },
blurIn() { // ios键盘弹出底部留白问题 window.scroll(0, 0)
},
h5页面ios键盘弹出收起后页面底部留白问题
猜你喜欢
转载自www.cnblogs.com/lanshengzhong/p/10308205.html
今日推荐
周排行