/*让底部页面始终居于底部*/
$(function() {
var Height1 = $('body').children().eq('1').height();
var Height2 = $('body').children().eq('2').height();
var Height3 = $('body').children().eq('3').height();
var Height4 = $('footer').height();
bottomHeight();
function bottomHeight() {
var goHeight = Height1 + Height2 + Height3;
var windowHeight = $(window).height();
if (goHeight < windowHeight) {
$('footer').css({
"position": "relative",
"top": "30px"
});
}
}
});
07-06
1万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-17
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交