手机端底部按钮隐藏与显示

var oHeight = $(document).height(); //屏幕当前的高度
$(window).resize(function () {

if ($(document).height() < oHeight) {

$("#next").css("display", "none");

} else {

$("#next").css("display", "block");

}

});

posted @ 2018-04-26 17:41  ▍凉城空巷°  阅读(210)  评论(0编辑  收藏  举报