js获取屏幕分辨率

<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  <title>显示器分辨率</title>
</head>

<body>
<script type='text/javascript'>
<!-- Begin
document.write('分辨率为:\n' + screen.width + '*' + screen.height + ' pixels');
 -->
</script>

</body>
</html>

 

posted on 2013-01-16 17:29  风林幻海  阅读(168)  评论(0编辑  收藏  举报

导航