JavaScript 参考手册
Screen availWidth 属性
本例包含了所有screen属性
源代码:
点击运行 »
<h3>你的屏幕:</h3> <script> document.write("总宽度/高度: "); document.write(screen.width + "*" + screen.height); document.write("<br>"); document.write("可以宽度/高度: "); document.write(screen.availWidth + "*" + screen.availHeight); document.write("<br>"); document.write("颜色深度: "); document.write(screen.colorDepth); document.write("<br>"); document.write("颜色分辨率: "); document.write(screen.pixelDepth); </script>
运行结果:
点击运行 »