var u = navigator.userAgent;
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
if(isiOS){ //解决ios12及以上软键盘关闭页面被拉长
        var scrollHeight = 0;
        $('.claim-input').each(function(){
          $(this).on('focus',function(){
            scrollHeight = $(window).scrollTop();
          })
          $(this).on('blur',function(){
            $(window).scrollTop(scrollHeight);
          })
        })
      }

 

相关文章:

  • 2021-06-16
  • 2022-12-23
  • 2021-08-13
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-03
猜你喜欢
  • 2022-03-13
  • 2021-11-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-24
相关资源
相似解决方案