aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/screen/height/index.html
blob: 8dbf1648ab1ea3fcc730a2be899c7f2f7bef3c8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
title: Screen.height
slug: Web/API/Screen/height
tags:
  - API
  - CSSOM View
  - NeedsMarkupWork
  - NeedsMobileBrowserCompatibility
  - Property
  - Reference
  - プロパティ
translation_of: Web/API/Screen/height
---
<p>{{APIRef("CSSOM")}}</p>

<p><code><strong>Screen.height</strong></code> は読み取り専用プロパティで、画面の高さをピクセル数で返します。</p>

<h2 id="Syntax" name="Syntax">構文</h2>

<pre class="syntaxbox notranslate">var <var>height</var> = window.screen.height</pre>

<h2 id="Example" name="Example"></h2>

<pre class="brush: js; notranslate">if (window.screen.availHeight !== window.screen.height) {
   // Something is occupying some screen real estate!
}
</pre>

<h2 id="Notes" name="Notes"></h2>

<p>このプロパティによって与えられる高さのすべてがウィンドウに利用できるわけではないことに注意してください。タスクバーなどのウィジェットや、 OS と統合された他の特殊なアプリケーションウィンドウ (例えば、ウィンドウの上で追加のツールバーのように動作するように最小化された Spinner プレイヤーなど) は、ブラウザーウィンドウや他のアプリケーションに利用可能な空間の量を減らすことがあります。</p>

<p>Internet Explorer は、画面の高さを報告する際に拡大率の設定を考慮します。拡大率が 100% に設定されている場合のみ、実際の画面の高さを返します。</p>

<h2 id="Specification" name="Specification">仕様書</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">仕様書</th>
   <th scope="col">状態</th>
   <th scope="col">備考</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName('CSSOM View', '#dom-screen-height', 'Screen.height')}}</td>
   <td>{{Spec2('CSSOM View')}}</td>
   <td></td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>

<p>{{Compat("api.Screen.height")}}</p>