安卓input框获取焦点时,底部按钮会顶上去的解决方法

var h = document.body.scrollHeight;
window.onresize = function(){
if (document.body.scrollHeight < h) {
document.getElementById("saveBtn").style.display = "none";
}else{
document.getElementById("saveBtn").style.display = "block";
}
};
posted @ 2017-11-30 19:04  原味咖啡厅  阅读(313)  评论(0编辑  收藏  举报