获取网页可见区域的宽高(兼容各浏览器)

//js  兼容各浏览器
var h = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;   //height
var w = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;      //width
原文地址:https://www.cnblogs.com/chenzeyongjsj/p/6558279.html