MMMHUHU
这个需要你js来判断下var oHeight = $(document).height(); //浏览器当前的高度$(window).resize(function(){ if($(document).height() < oHeight){
$("#footer").css("position","static");
}else{
$("#footer").css("position","absolute");
}});