<!DOCTYPE html>
<html>
<body>
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML =
"屏幕颜色深度为 " + screen.colorDepth;
</script>
</body>
</html>