ios打开网页,输入框获取焦点键盘弹起,关闭键盘,界面下方空白不回弹

监听input的blur事件,执行以下代码

window.scrollTo(
  0,
  Math.max(
    document.body.clientHeight,
    document.documentElement.clientHeight
  )
)
原文地址:https://www.cnblogs.com/shifeng-/p/10832376.html