From 65cc6eabd71b1bceccf6fd3d3d4970c2955f3784 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Thu, 10 Dec 2020 08:37:18 -0500 Subject: dump 2020-12-10 --- files/zh-cn/web/api/window/scrollto/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'files/zh-cn/web/api/window/scrollto') diff --git a/files/zh-cn/web/api/window/scrollto/index.html b/files/zh-cn/web/api/window/scrollto/index.html index 715e3f0190..83cc7657aa 100644 --- a/files/zh-cn/web/api/window/scrollto/index.html +++ b/files/zh-cn/web/api/window/scrollto/index.html @@ -11,7 +11,7 @@ translation_of: Web/API/Window/scrollTo

语法

-
window.scrollTo(x-coord,y-coord )
+
window.scrollTo(x-coord,y-coord )
 
 window.scrollTo(options)
@@ -26,7 +26,7 @@ translation_of: Web/API/Window/scrollTo
  1. top 等同于  y-coord
  2. left 等同于  x-coord
  3. -
  4. behavior  类型String,表示滚动行为,支持参数 smooth(平滑滚动),instant(瞬间滚动),默认值auto,实测效果等同于instant
  5. +
  6. behavior  类型String,表示滚动行为,支持参数 smooth(平滑滚动),instant(瞬间滚动),默认值auto
@@ -34,7 +34,7 @@ translation_of: Web/API/Window/scrollTo

例子

-
window.scrollTo( 0, 1000 );
+
window.scrollTo( 0, 1000 );
 
 // 设置滚动行为改为平滑的滚动
 window.scrollTo({
-- 
cgit v1.2.3-54-g00ecf