编辑下面的代码:【加编码】
<html> <body> <h3>Your Screen:</h3> <script> document.write("Total width/height: "); document.write(screen.width + "*" + screen.height); document.write("<br>"); document.write("Available width/height: "); document.write(screen.availWidth + "*" + screen.availHeight); document.write("<br>"); document.write("Color depth: "); document.write(screen.colorDepth); document.write("<br>"); document.write("Color resolution: "); document.write(screen.pixelDepth); </script> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂