passer1991

2013年8月23日

浏览器窗口的大小

摘要: var w=window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; var h=window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; console.log(w+" "+h); 上边的代码是获得浏览器可视部分的高度和宽度. var dbsh=document.body.scrollHeight; ... 阅读全文

posted @ 2013-08-23 13:38 passer1991 阅读(144) 评论(0) 推荐(0) 编辑

导航