var windowInnerHeight = window.innerHeight;
//获取当前浏览器窗口高度
$(window).resize(function(){ if(window.innerHeight < windowInnerHeight){ $('#foot').hide(); }else{ $('#foot').show(); }});本文共 232 字,大约阅读时间需要 1 分钟。
var windowInnerHeight = window.innerHeight;
//获取当前浏览器窗口高度
$(window).resize(function(){ if(window.innerHeight < windowInnerHeight){ $('#foot').hide(); }else{ $('#foot').show(); }});转载于:https://www.cnblogs.com/jyc226/p/10875861.html