效果如下:
代码如下:
<html>
<head>
<title>获取当前对象大小以及屏幕分辨率等</title>
<body>
<div xss=removed id=div_html>
</div>
[removed]
var s = ;
s += 网页可见区域宽:+ document.body.clientWidth+<br>;
s += 网页可见区域高:+ document.body.clientHeight+<br>;
s +