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

posted @ 2019-04-26 09:39  Ann丶  阅读(415)  评论(0编辑  收藏  举报