使用JavaScript中的screen.colorDepth属性返回用于在窗口屏幕上显示颜色的位数。
您可以尝试运行以下代码以返回JavaScript中的屏幕颜色深度。
<!DOCTYPE html>
<html>
<body>
<script>
document.write("屏幕宽度: " + screen.width);
document.write("<br>Screen height: " + screen.height);
document.write("<br>Color Depth: " + screen.colorDepth);
</script>
</body>
</html>