HTML DOM Screen 对象
width 属性声明了显示浏览器的屏幕的宽度,以像素计。
screen.width
<html> <body> <script type="text/javascript"> document.write("<p>Width: ") document.write(screen.width + "</p>") </script> </body> </html>