Settings | Sign in | Sign up

There is currently 1 post.

【资料】Javascript获得可滚动div或iframe的属性

Floor 1 产品的注销 12/15/10 18:52

s += "网页可见区域宽:"+ document.body.clientWidth;
s += "网页可见区域高:"+ document.body.clientHeight;
s += "网页可见区域高:"+ document.body.offsetWeight +" (包括边线的宽)";
s += "网页可见区域高:"+ document.body.offsetHeight +" (包括边线的宽)";
s += "网页正文全文宽:"+ document.body.scrollWidth;
s += "网页正文全文高:"+ document.body.scrollHeight;
s += "网页被卷去的高:"+ document.body.scrollTop;
s += "网页被卷去的左:"+ document.body.scrollLeft;

Content converter:

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.