标签:
<script type="text/javascript">
var getScreen = function (name) {
var elem = document;
return Math.max( elem.documentElement["client" + name], elem.body["scroll" + name], elem.documentElement["scroll" + name], elem.body["offset" + name], elem.documentElement["offset" + name] ) ;
}
var gIsSmall = false;
alert(getScreen(‘Width‘)) ;
alert(getScreen(‘Height‘)) ;
</script>
标签:
原文地址:http://www.cnblogs.com/qiuyueguangxuan/p/4600083.html