這個需要你js來判斷下
var oHeight = $(document).height(); //瀏覽器當(dāng)前的高度
$(window).resize(function(){
if($(document).height() < oHeight){
$("#footer").css("position","static");
}else{
$("#footer").css("position","absolute");
}
});
經(jīng)測 IOS無此問題 安卓有次問題