From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/api/document/height/index.html | 53 +++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 files/ja/web/api/document/height/index.html (limited to 'files/ja/web/api/document/height') diff --git a/files/ja/web/api/document/height/index.html b/files/ja/web/api/document/height/index.html new file mode 100644 index 0000000000..ab0d767e29 --- /dev/null +++ b/files/ja/web/api/document/height/index.html @@ -0,0 +1,53 @@ +--- +title: Document.height +slug: Web/API/Document/height +tags: + - DOM + - DOM_0 + - Gecko + - Gecko DOM Reference +translation_of: Web/API/Document/height +--- +
{{APIRef("DOM")}} {{Obsolete_header}}
+ +
+

メモ: {{Gecko("6.0")}} より document.height には対応しなくなりました。代わりに document.body.clientHeight を使用してください。 {{domxref("element.clientHeight")}} を参照して下さい。

+
+ +

現在の {{domxref("document")}} オブジェクトの高さを返します。多くの場合、これは現在の文書の {{HTMLElement("body")}} 要素の高さと同じ値です。

+ +

構文

+ +
pixels = document.height
+
+ +

+ +
// 文書の高さを表示
+alert(document.height);
+
+ +

代替策

+ +
document.body.clientHeight
+document.documentElement.clientHeight
+document.documentElement.scrollHeight
+
+ +

仕様書

+ +

HTML5

+ +

ブラウザーの対応

+ + + +

{{Compat("api.Document.height")}}

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf