JavaScript 参考手册
Screen width 属性
返回你的屏幕的总宽度
源代码:
点击运行 »
<script> document.write("总宽度: " + screen.width); </script>
运行结果:
点击运行 »