HTML DOM Screen 对象
colorDepth 属性返回目标设备或缓冲器上的调色板的比特深度。
screen.colorDepth
<html> <body> <script type="text/javascript"> document.write("<p>Color Depth: ") document.write(screen.colorDepth + "</p>") </script> </body> </html>