HTML DOM deviceXDPI 属性定义和用法语法实例HTML DOM deviceXDPI 属性定义和用法deviceXDPI 属性返回显示屏幕的每英寸水平点数。 语法screen.deviceXDPI 实例<html> <body><script type="text/javascript">document.write("<p>Device XDPI: ")document.write(screen.deviceXDPI + "</p>")</script></body> </html>