当输入法键盘唤起,底部footer跟随着一起上去的bug

2017-04-26  本文已影响0人  393d4e0df76e

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

$(window).resize(function(){

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

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

}else{

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

}

});

上一篇 下一篇

猜你喜欢

热点阅读