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/screen/height/index.html | 58 +++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 files/ja/web/api/screen/height/index.html (limited to 'files/ja/web/api/screen/height') diff --git a/files/ja/web/api/screen/height/index.html b/files/ja/web/api/screen/height/index.html new file mode 100644 index 0000000000..96a14b18ef --- /dev/null +++ b/files/ja/web/api/screen/height/index.html @@ -0,0 +1,58 @@ +--- +title: Screen.height +slug: Web/API/Screen/height +tags: + - API + - CSSOM View + - NeedsMarkupWork + - NeedsMobileBrowserCompatibility + - Property + - Reference + - プロパティ +translation_of: Web/API/Screen/height +--- +

{{APIRef("CSSOM")}}

+ +

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

+ +

構文

+ +
var height = window.screen.height
+ +

+ +
if (window.screen.availHeight !== window.screen.height) {
+   // Something is occupying some screen real estate!
+}
+
+ +

+ +

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

+ +

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

+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('CSSOM View', '#dom-screen-height', 'Screen.height')}}{{Spec2('CSSOM View')}}
+ +

ブラウザーの互換性

+ + + +

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

-- cgit v1.2.3-54-g00ecf