aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/window/scrollbylines/index.html
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/window/scrollbylines/index.html
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/ja/web/api/window/scrollbylines/index.html')
-rw-r--r--files/ja/web/api/window/scrollbylines/index.html38
1 files changed, 38 insertions, 0 deletions
diff --git a/files/ja/web/api/window/scrollbylines/index.html b/files/ja/web/api/window/scrollbylines/index.html
new file mode 100644
index 0000000000..c510a70844
--- /dev/null
+++ b/files/ja/web/api/window/scrollbylines/index.html
@@ -0,0 +1,38 @@
+---
+title: window.scrollByLines
+slug: Web/API/Window/scrollByLines
+tags:
+ - DOM
+ - DOM_0
+ - Gecko
+ - Gecko DOM Reference
+ - 要更新
+translation_of: Web/API/Window/scrollByLines
+---
+<p>{{ ApiRef() }} {{ 英語版章題("Summary") }}</p>
+<h3 id=".E6.A6.82.E8.A6.81" name=".E6.A6.82.E8.A6.81">概要</h3>
+<p>指定した行分文書をスクロールします。 {{ 英語版章題("Syntax") }}</p>
+<h3 id=".E6.A7.8B.E6.96.87" name=".E6.A7.8B.E6.96.87">構文</h3>
+<pre class="eval">window.scrollByLines(<i>lines</i>)
+</pre>
+<p>{{ 英語版章題("Parameters") }}</p>
+<h3 id=".E5.BC.95.E6.95.B0" name=".E5.BC.95.E6.95.B0">引数</h3>
+<ul>
+ <li><code>lines</code> は、文書をスクロールする行数です。</li>
+</ul>
+<ul>
+ <li><code>lines</code> は、正、または、負の整数です。</li>
+</ul>
+<p>{{ 英語版章題("Example") }}</p>
+<h3 id=".E4.BE.8B" name=".E4.BE.8B">例</h3>
+<pre class="eval">// 5 行分文書をスクロールダウンします。
+&lt;button onclick="scrollByLines(5);"&gt;down 5 lines&lt;/button&gt;
+</pre>
+<pre class="eval">// 5 行分文書をスクロールアップします。
+&lt;button onclick="scrollByLines(-5);"&gt;up 5 lines&lt;/button&gt;
+</pre>
+<p>{{ 英語版章題("Notes") }}</p>
+<h3 id=".E6.B3.A8.E8.A8.98" name=".E6.B3.A8.E8.A8.98">注記</h3>
+<p>{{domxref("window.scrollBy")}}、{{domxref("window.scrollByPages")}} も参照してください。 {{ 英語版章題("Specification") }}</p>
+<h3 id=".E4.BB.95.E6.A7.98" name=".E4.BB.95.E6.A7.98">仕様</h3>
+<p>{{ DOM0() }}</p>