var height=document.body.offsetHeight;//获取当前页面总高度
var top=height-$("#footer").height();//顶部页面的高度(注意height计算的高度没有把顶部嵌套的页面高度加进去)
$("#footer").css("top",top);//给底部页面添加绝对路径距离上面高度
var height=document.body.offsetHeight;//获取当前页面总高度
var top=height-$("#footer").height();//顶部页面的高度(注意height计算的高度没有把顶部嵌套的页面高度加进去)
$("#footer").css("top",top);//给底部页面添加绝对路径距离上面高度