...
console.log window .height 浏览器当前窗口可视区域高度 console.log document .height 浏览器当前窗口文档的高度 console.log document.body .height 浏览器当前窗口文档body的高度 console.log document.body .outerHeight true 浏览器当前窗口文档body的总高度 包括b ...
2017-11-24 19:38 0 4304 推荐指数:
...
javascript IE中:document.body.clientWidth ==> BODY对象宽度document.body.clientHeight ==> BODY对象高度document.documentElement.clientWidth ==> 可见区域宽度 ...
...
...
原生js Jquery ...
1、window.screen.height window.screen.height:设备显示屏的高度 (1)分辨率为1080px的显示屏 (2)手机屏 2、window.screen.availHeight 屏幕的可用高度 (1)分辨率为1080px的显示屏 ...
window 对象的公开标准,不过所有浏览器都支持该对象。使用jQuery可以这样获取window的宽高: ...
$(window).height(); //浏览器时下窗口可视区域高度 $(document).height(); //浏览器时下窗口文档的高度 $(document.body).height();//浏览器时下窗口文档body的高度 $(document.body).outerHeight ...