javascript获取浏览器窗口大小

var w=window.innerWidth
|| document.documentElement.clientWidth
|| document.body.clientWidth;
var h=window.innerHeight
|| document.documentElement.clientHeight
|| document.body.clientHeight;

posted on 2016-10-03 16:14  Gengry  阅读(142)  评论(0)    收藏  举报

导航