&lt;body&gt;<br /> &lt;SCRIPT LANGUAGE=&quot;JavaScript&quot;&gt; <br /> var s = &quot;网页可见区域宽:&quot;+ document.body.clientWidth; <br /> s += &quot;\r\n网页可见区域高:&quot;+ document.body.clientHeight; <br /> s += &quot;\r\n网页可见区域宽:&quot;+ document.body.offsetWeight +&quot; (包括边线的宽)&quot;; <br /> s += &quot;\r\n网页可见区域高:&quot;+ document.body.offsetHeight +&quot; (包括边线的宽)&quot;; <br /> s += &quot;\r\n网页正文全文宽:&quot;+ document.body.scrollWidth; <br /> s += &quot;\r\n网页正文全文高:&quot;+ document.body.scrollHeight; <br /> s += &quot;\r\n网页被卷去的高:&quot;+ document.body.scrollTop; <br /> s += &quot;\r\n网页被卷去的左:&quot;+ document.body.scrollLeft; <br /> s += &quot;\r\n网页正文部分上:&quot;+ window.screenTop; <br /> s += &quot;\r\n网页正文部分左:&quot;+ window.screenLeft; <br /> s += &quot;\r\n屏幕分辨率的高:&quot;+ window.screen.height; <br /> s += &quot;\r\n屏幕分辨率的宽:&quot;+ window.screen.width; <br /> s += &quot;\r\n屏幕可用工作区高度:&quot;+ window.screen.availHeight; <br /> s += &quot;\r\n屏幕可用工作区宽度:&quot;+ window.screen.availWidth; <br /> alert(s); <br /> &lt;/SCRIPT&gt;
T:0.016926s,M:246.39 KB
返回顶部 留言