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/zh-cn/web/api/screen/availheight/index.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 files/zh-cn/web/api/screen/availheight/index.html (limited to 'files/zh-cn/web/api/screen/availheight') diff --git a/files/zh-cn/web/api/screen/availheight/index.html b/files/zh-cn/web/api/screen/availheight/index.html new file mode 100644 index 0000000000..9a09071edf --- /dev/null +++ b/files/zh-cn/web/api/screen/availheight/index.html @@ -0,0 +1,18 @@ +--- +title: Screen.availHeight +slug: Web/API/Screen/availHeight +translation_of: Web/API/Screen/availHeight +--- +
+ {{APIRef}}
+

概述

+

返回浏览器窗口在屏幕上可占用的垂直空间,即最大高度。

+

语法

+
iAvail = window.screen.availHeight
+

示例

+
if (window.screen.availHeight !== window.screen.height) {
+  // something's in the way!
+  // use available to size window
+}
+

规范

+

{{DOM0}}

-- cgit v1.2.3-54-g00ecf