移动端input解决键盘问题 方案1

$('body').on('focusin', 'input, textarea', function(event) {
  if(navigator.userAgent.indexOf('Android') > -1 && ...){
   var scroll = $(this).offset();
   window.scrollTo(0, scroll);
 }
});
原文地址:https://www.cnblogs.com/GoodPingGe/p/5160155.html