blob: 04bbe0a9c03bde73e612e8ea4ebe8952a8977484 (
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
|
---
title: Window.pageYOffset
slug: Web/API/Window/pageYOffset
tags:
- API
- CSSOM
translation_of: Web/API/Window/pageYOffset
---
<div>{{ APIRef("CSSOM View") }}</div>
<p>只读属性<code>pageYOffset</code>是 <code><a href="/en-US/docs/Web/API/Window/scrollY">scrollY</a> </code>的别名。</p>
<h2 id="Specification" name="Specification">规范</h2>
<table class="standard-table">
<thead>
<tr>
<th scope="col">Specification</th>
<th scope="col">Status</th>
<th scope="col">Comment</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ SpecName('CSSOM View', '#dom-window-pageyoffset', 'window.pageYOffset') }}</td>
<td>{{ Spec2('CSSOM View') }}</td>
<td> </td>
</tr>
</tbody>
</table>
<h2 id="浏览器支持">浏览器支持</h2>
{{Compat("api.Window.pageYOffset")}}
<h2 id="See_also" name="See_also">相关链接</h2>
<ul>
<li><a href="/en-US/docs/Web/API/Window/pageXOffset"><code>window.pageXOffset</code></a></li>
</ul>
|