<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)
},

 

相关文章:

  • 2021-10-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-18
  • 2022-01-03
  • 2022-03-13
  • 2022-12-23
  • 2021-07-01
  • 2022-12-23
相关资源
相似解决方案