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/85323399ui

相關文章
相關標籤/搜索