2015年1月19日

js 获取元素高度和宽度

摘要: 如图:IE中: document.body.clientWidth ==> BODY对象宽度 document.body.clientHeight ==> BODY对象高度 document.documentElement.clientWidth ==> 可见区域宽度 document.docume... 阅读全文

posted @ 2015-01-19 10:47 YeWeb 阅读(8604) 评论(0) 推荐(2) 编辑

jquery 获取元素宽度和高度

摘要: 1 alert($(window).height()); //浏览器时下窗口可视区域高度 2 3 alert($(document).height()); //浏览器时下窗口文档的高度 4 5 alert($(document.body).height());//浏览器时下窗口文档body的高... 阅读全文

posted @ 2015-01-19 10:42 YeWeb 阅读(462) 评论(0) 推荐(0) 编辑

导航