screen.logicalXDPI

モニタ画面の横方向の論理的な解像度を示します。通常Macintoshでは72dpi、Windowsでは96dpiになります。このプロパティはWindows版Internet Explorer 6以降で利用できます。

構文

screen.logicalXDPI

例文

<html>
 <head>
  <title>screen.logicalXDPI</title>
</head>
 <body>
  <script type="text/javascript"><!--
   document.write(screen.logicalXDPI);
  // --></script>
 </body>
</html>

関連記事

スポンサーリンク

media属性を含むlink要素で呼び出した外部スタイルシートでは@mediaを無視

ホームページ製作・web系アプリ系の製作案件募集中です。

上に戻る