看完图下面是测试代码:
html
head
titlewebjx.com/title
meta http-equiv="Content-Type" content="text/html; charset=gb2312"
style type="text/css"
/style
/head
body
SCRIPT LANGUAGE="JavaScript"
var s = "";
s += "\r\n网页可见区域宽:"+ document.body.clientWidth;
s += "\r\n网页可见区域高:"+ document.body.clientHeight;
s += "\r\n网页可见区域宽:"+ document.body.offsetWidth +" (包括边线的宽)";
s += "\r\n网页可见区域高:"+ document.body.offsetHeight +" (包括边线的宽)";
s += "\r\n网页正文全文宽:"+ document.bod...[ 查看全文 ]