// 当body页面高度小于浏览窗口页面高度时,设置body页面为浏览窗口高度,foot 定位窗口底部
var body = $('body');
var vh100 = $('html').css('min-height','100vh').height();
var foot = $('.foot');
if(body.height() < vh100){
body.height(vh100);
foot.css({
"position": "fixed",
"bottom": 0,
"left": 0,
"width": "100vw"
})
}
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!