javascript获取分辨率,网页窗口大小等值

<html>19楼空间,`(uqj3~9?!F
<body>
Ob*p#?L;DL0<scrīpt   LANGUAGE="Javascrīpt">
+t:{z]tbs0var s = "";19楼空间e kA3HoT1H
s += "网页可见区域宽:" + document.body.clientWidth;19楼空间cy2if}:H/SE@
s += "<br>网页可见区域高:"+ document.body.clientHeight;19楼空间//U`xI` s w(Zs
s += "<br>网页可见区域宽:"+ document.body.offsetWidth +" (包括边线和滚动条)";19楼空间@t S)W7X+]g4T
s += "<br>网页可见区域高:"+ document.body.offsetHeight +" (包括边线)";19楼空间mLcc4D+@
s += "<br>网页正文全文宽:"+ document.body.scrollWidth;
d5}L8R P0s += "<br>网页正文部分上:"+ window.screenTop;
m dk-c eF0s += "<br>网页正文部分左:"+ window.screenLeft;
P'`J5@5E1J0s += "<br>屏幕分辨率的高:"+ window.screen.height;19楼空间 n0/0VM hB3X
s += "<br>屏幕分辨率的宽:"+ window.screen.width;
N~]yM|F|/Z `d(n~0s += "<br>屏幕可用工作区高度:"+ window.screen.availHeight;
S(l jVHW6UM0s += "<br>屏幕可用工作区宽度:"+ window.screen.availWidth;19楼空间.G0Q|jjwL Bf
s += "<br>你的屏幕设置是   "+ window.screen.colorDepth   +"   位彩色";19楼空间(iG:WM s?
s += "<br>你的屏幕设置   "+ window.screen.deviceXDPI   +"   像素/英寸";19楼空间2j!e3T#zi |
s += "<br>网页真实宽:" + document.documentElement.scrollWidth;
"oW|6t0s,Z!j0s += "<br>网页真实高:"+ document.documentElement.scrollHeight;19楼空间s%y+Fl,d
document.write(s);19楼空间KP fp/m
</scrīpt>19楼空间1d0z1{;?J.{Rjw6_
</body>
E `#R oi7D0SH0</html>

你可能感兴趣的:(JavaScript,html,c,工作)