ios微信打开网页键盘弹起后页面上滑,导致弹框里的按钮响应区域错位

$("input").blur(function() { 
    setTimeout(function(){
        var scrollHeight = document.documentElement.scrollTop || document.body.scrollTop || 0;
        window.scrollTo(0, Math.max(scrollHeight - 1, 0));
    }, 100);
});

转载自:https://blog.csdn.net/lianghaigui/article/details/85323399

原文地址:https://www.cnblogs.com/laq627/p/10772494.html