唐朝板栗的Matrix

解决疑难杂症,专治水土不服。

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
function ShowClientSize() {
var strText;
strText
= "网页可见区域宽:" + document.body.clientWidth;
strText
+= "\r\n网页可见区域高:" + document.body.clientHeight;
strText
+= "\r\n网页可见区域高:" + document.body.offsetWeight + " (包括边线的宽)";
strText
+= "\r\n网页可见区域高:" + document.body.offsetHeight + " (包括边线的宽)";
strText
+= "\r\n网页正文全文宽:" + document.body.scrollWidth;
strText
+= "\r\n网页正文全文高:" + document.body.scrollHeight;
strText
+= "\r\n网页被卷去的高:" + document.body.scrollTop;
strText
+= "\r\n网页被卷去的左:" + document.body.scrollLeft;
strText
+= "\r\n网页正文部分上:" + window.screenTop;
strText
+= "\r\n网页正文部分左:" + window.screenLeft;
strText
+= "\r\n屏幕分辨率的高:" + window.screen.height;
strText
+= "\r\n屏幕分辨率的宽:" + window.screen.width;
strText
+= "\r\n屏幕可用工作区高度:" + window.screen.availHeight;
strText
+= "\r\n屏幕可用工作区宽度:" + window.screen.availWidth;
alert(strText);
}
posted on 2011-02-15 11:22  Alex.C  阅读(319)  评论(0编辑  收藏  举报