ios移动输入框被软键盘遮挡

页面输入框会出现被软键盘挡住的问题:

解决方法:获取input点击事件设置body高度

[html] view plain copy
 
 在CODE上查看代码片派生到我的代码片
  1. $('input').bind('click',function(e){  
  2.        var $this = $(this);  
  3.        e.preventDefault();  
  4.        setTimeout(function(){  
  5.            $(window).scrollTop($this.offset().top-10 );  
  6.        },200)  
  7.    })
原文地址:https://www.cnblogs.com/telwanggs/p/6477543.html