$(function(){
var oHeight = $(window).height(); //浏览器当前的高度
$(window).resize(function(){
if($(window).height() < oHeight){
$(".footer").css("position","static");
}else{
$(".footer").css("position","fixed");
}
});
})