这篇翻译不完整。请帮忙从英语翻译这篇文章

 

非标准
该特性是非标准的,请尽量不要在生产环境中使用它!

Summary

Scrolls the document by the given number of lines.

Syntax

window.scrollByLines(lines) 

Parameters

  • lines is the number of lines to scroll the document by.
  • lines may be a positive or negative integer.

Example

<!-- scroll down the document by 5 lines. -->
<button onclick="scrollByLines(5);">down 5 lines</button>
<!-- scroll up the document by 5 lines. -->
<button onclick="scrollByLines(-5);">up 5 lines</button>

Specification

This is not part of any specification

See also

文档标签和贡献者

 此页面的贡献者: HAAAAADION
 最后编辑者: HAAAAADION,