获取浏览器的可视窗口宽高

code

对于Internet Explorer、Chrome、Firefox、Opera 以及 Safari:
* window.innerHeight   高度
* window.innerWidth    宽度
对于 Internet Explorer 8765* document.documentElement.clientHeight   高度
* document.documentElement.clientWidth    宽度
或者
* document.body.clientHeight   高度
* document.body.clientWidth    宽度

原文地址:https://www.cnblogs.com/sea-stream/p/13530609.html