在网页中用javascript可得到当前窗口的高和宽:
<html>
<body>
<script language="JavaScript">
var  s = "";
s += "\r\n网页可见区域宽:"+ document.body.clientWidth;
...