HTML DOM deviceXDPI 属性
定義と使用法
deviceXDPI 属性は、表示画面の1インチあたりの水平ドット数を返します。
文法
screen.deviceXDPI
例
<html> <body> <script type="text/javascript"> document.write("<p>Device XDPI: ") document.write(screen.deviceXDPI + "</p>") </script> </body> </html>
deviceXDPI 属性は、表示画面の1インチあたりの水平ドット数を返します。
screen.deviceXDPI
<html> <body> <script type="text/javascript"> document.write("<p>Device XDPI: ") document.write(screen.deviceXDPI + "</p>") </script> </body> </html>