1
<h3>你的屏幕:</h3>
2
<script>
3
document.write("总宽度/高度: ");
4
document.write(screen.width + "*" + screen.height);
5
document.write("<br>");
6
document.write("可以宽度/高度: ");
7
document.write(screen.availWidth + "*" + screen.availHeight);
8
document.write("<br>");
9
document.write("颜色深度: ");
10
document.write(screen.colorDepth);
11
document.write("<br>");
12
document.write("颜色分辨率: ");
13
document.write(screen.pixelDepth);
14
</script>