Element.scrollIntoView() 方法让当前的元素滚动到浏览器窗口的可视区域内。

<input type="tel" placeholder="输入手机号" v-model="mobile" @focus="keyboardBounce(false)" @blur="keyboardBounce(true)" maxlength="11"/>
function(){
  Element.scrollIntoView();
}

 

相关文章:

  • 2022-12-23
  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
  • 2021-09-15
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案