判断body的高度,安排footer position具体的样式


heights()
function heights(){ if ($(document.body).height() > 700) { $("#footer").css("position", "static") console.log("static") } else { $("#footer").css("position", "fixed") console.log("fixed") } }

 

posted on 2017-09-27 23:15  大力水手和超级玛丽  阅读(92)  评论(0编辑  收藏  举报

导航