HTML DOM bufferDepth 属性

定义和用法

bufferDepth 属性设置或返回在 off-screen bitmap buffer 中调色板的比特深度。

语法

  1. screen.bufferDepth=number

实例

  1. <html>
  2.  
  3. <body>
  4. <script type="text/javascript">
  5. document.write("<p>Buffer Depth: ")
  6. document.write(screen.bufferDepth + "</p>")
  7. </script>
  8. </body>
  9.  
  10. </html>