HTML DOM Screen 对象
pixelDepth 属性返回显示屏幕的颜色分辨率(比特每像素)。
screen.pixelDepth
<html> <body> <script type="text/javascript"> document.write("<p>Pixel Depth: ") document.write(screen.pixelDepth + "</p>") </script> </body> </html>