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

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

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

 

[html] view plain copy
 
 ios移动输入框被软键盘遮挡ios移动输入框被软键盘遮挡
  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.    })

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-01
  • 2022-12-23
  • 2022-12-23
  • 2022-02-25
猜你喜欢
  • 2022-12-23
  • 2021-10-21
  • 2021-07-17
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案