blob: e246a5f3154202c38f69f3b0b1e2720d4d07afe7 (
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
57
58
59
60
|
---
title: Window.outerHeight
slug: Web/API/Window/outerHeight
tags:
- API
- CSSOM View
- NeedsContent
- Property
- Reference
- outerHeight
translation_of: Web/API/Window/outerHeight
---
<div>{{APIRef}}</div>
<p><strong><code>Window.outerHeight</code></strong> は読み取り専用のプロパティで、サイドバー、ウィンドウの操作部分、ウィンドウをリサイズする境界やハンドルを含む、ブラウザーウィンドウ全体の高さをピクセル単位で表します。</p>
<h2 id="Notes" name="Notes">メモ</h2>
<p>ウィンドウの大きさを変更するには、 {{domxref("window.resizeBy()")}} および {{domxref("window.resizeTo()")}} を使用してください。</p>
<p>ウィンドウの内側の高さ、つまりページが表示される高さを取得するには、 {{domxref("window.innerHeight")}} を使用してください。</p>
<h3 id="Graphical_example" name="Graphical_example">図による例示</h3>
<p>以下の図は、 <code>outerHeight</code> と <code>innerHeight</code> の違いを示しています。</p>
<p><img alt="innerHeight vs outerHeight illustration" src="/@api/deki/files/213/=FirefoxInnerVsOuterHeight2.png"></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-window-outerwidth', 'Window.outerWidth') }}</td>
<td>{{ Spec2('CSSOM View') }}</td>
<td> </td>
</tr>
</tbody>
</table>
<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの対応</h2>
<p>{{Compat("api.Window.outerHeight")}}</p>
<h2 id="See_also" name="See_also">関連情報</h2>
<ul>
<li>{{domxref("window.innerHeight")}}</li>
<li>{{domxref("window.innerWidth")}}</li>
<li>{{domxref("window.outerWidth")}}</li>
<li>{{domxref("window.resizeBy()")}}</li>
<li>{{domxref("window.resizeTo()")}}</li>
</ul>
|