diff options
Diffstat (limited to 'files/zh-cn/web/api/window/mozinnerscreeny/index.html')
| -rw-r--r-- | files/zh-cn/web/api/window/mozinnerscreeny/index.html | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/window/mozinnerscreeny/index.html b/files/zh-cn/web/api/window/mozinnerscreeny/index.html new file mode 100644 index 0000000000..f5b5aedb89 --- /dev/null +++ b/files/zh-cn/web/api/window/mozinnerscreeny/index.html @@ -0,0 +1,44 @@ +--- +title: Window.mozInnerScreenY +slug: Web/API/Window/mozInnerScreenY +tags: + - HTML DOM + - NeedsCompatTable + - NeedsExample + - NeedsMarkupWork + - NeedsSpecTable + - Window + - 参考 + - 属性 + - 接口 +translation_of: Web/API/Window/mozInnerScreenY +--- +<div>{{APIRef}}{{gecko_minversion_header("1.9.2")}}</div> + +<h2 id="概要">概要</h2> + +<p>在屏幕坐标下获取窗口视口左上角的Y坐标</p> + +<div class="note"><strong>备注:</strong>该坐标是以CSS像素报告显示的,而不是以硬件像素。 这意味着它可以受缩放级别的影响; 要计算物理屏幕像素的实际数量,需要使用<a href="/en-US/docs/XPCOM_Interface_Reference/nsIDOMWindowUtils"><code>nsIDOMWindowUtils.screenPixelsPerCSSPixel</code></a> 属性</div> + +<h2 id="语法">语法</h2> + +<pre class="syntaxbox"><var>screenY</var> = window.mozInnerScreenY;</pre> + +<h2 id="值">值</h2> + +<ul> + <li><var>screenY</var> 存储的是 <code>window.mozInnerScreenY</code> 的属性值.</li> + <li> <code>window.mozInnerScreenY</code>的属性值是一个浮点数,只读;它没有默认值.</li> +</ul> + +<h2 id="规范">规范</h2> + +<p>不属于任何W3C规范或标准</p> + +<h2 id="相关链接">相关链接</h2> + +<ul> + <li>{{domxref("window.mozInnerScreenX")}}</li> + <li><a href="/en-US/docs/XPCOM_Interface_Reference/nsIDOMWindowUtils"><code>nsIDOMWindowUtils.screenPixelsPerCSSPixel</code></a></li> +</ul> |
