From a02f4b2f60c81e09b318a090e5c9c2d2d641c878 Mon Sep 17 00:00:00 2001 From: t7yang Date: Sat, 17 Jul 2021 16:10:02 +0800 Subject: replace wiki links in zh-CN --- files/zh-cn/web/api/visualviewport/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'files/zh-cn/web/api/visualviewport') diff --git a/files/zh-cn/web/api/visualviewport/index.html b/files/zh-cn/web/api/visualviewport/index.html index e07f4aa91d..da9f74123e 100644 --- a/files/zh-cn/web/api/visualviewport/index.html +++ b/files/zh-cn/web/api/visualviewport/index.html @@ -15,7 +15,7 @@ translation_of: Web/API/VisualViewport ---

{{SeeCompatTable}}{{APIRef("Visual Viewport")}}

-

 Visual Viewport API 提供了当前页面的视觉视口接口,即 VisualViewport 。对于每个页面容器来说(如 iframe),都存在有一个独立的 window 对象。每个页面容器的 window 对象都有一个独立的 VisualViewport 属性。

+

 Visual Viewport API 提供了当前页面的视觉视口接口,即 VisualViewport 。对于每个页面容器来说(如 iframe),都存在有一个独立的 window 对象。每个页面容器的 window 对象都有一个独立的 VisualViewport 属性。

你可以使用 {{domxref("Window.visualViewport")}} 获得对应 window 的视觉视口 API。

@@ -46,13 +46,13 @@ translation_of: Web/API/VisualViewport

Events

-

通过使用 addEventListener() 或者将监听回调函数赋值给对应的 oneventname 属性,可以为对应的视口事件添加监听。

+

通过使用 addEventListener() 或者将监听回调函数赋值给对应的 oneventname 属性,可以为对应的视口事件添加监听。

-
resize
+
resize
当视觉视口被改变时触发。
也可以为 {{domxref("VisualViewport.onresize")}} 属性赋值来添加监听。
-
scroll
+
scroll
当视觉视口滑动时触发。
也可以为 {{domxref("VisualViewport.onscroll")}} 属性赋值来添加监听。
-- cgit v1.2.3-54-g00ecf