HBCMS更多的中文手册参考:

scrollBy Method

DHTML文档教程

Causes the window to scroll relative to the current scrolled position by the specified x- and y-pixel offset.

dhtml语法

window.scrollBy(iX, iY)

Parameters

iX Required. Integerthat specifies the horizontal scroll offset, in pixels. Positive values scroll the window right, and negative values scroll it left.
iY Required. Integerthat specifies the vertical scroll offset, in pixels. Positive values scroll the window down, and negative values scroll it up.

Return Value

No return value.

是否符合公共标准

There is no public standard that applies to this method.

Applies To

window

更多语法参考

scrollTo