源代碼
點擊運行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>教程</title> </head> <body> <h3>你的屏幕:</h3> <script> document.write("總寬度/高度: "); document.write(screen.width + "*" + screen.height); document.write("<br>"); document.write("可以寬度/高度: "); document.write(screen.availWidth + "*" + screen.availHeight); document.write("<br>"); document.write("顏色深度: "); document.write(screen.colorDepth); document.write("<br>"); document.write("顏色分辨率: "); document.write(screen.pixelDepth); </script> </body> </html>
運行結果