aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/window/resizeby
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/resizeby
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/resizeby')
-rw-r--r--files/ja/web/api/window/resizeby/index.html38
1 files changed, 38 insertions, 0 deletions
diff --git a/files/ja/web/api/window/resizeby/index.html b/files/ja/web/api/window/resizeby/index.html
new file mode 100644
index 0000000000..43e86c4422
--- /dev/null
+++ b/files/ja/web/api/window/resizeby/index.html
@@ -0,0 +1,38 @@
+---
+title: window.resizeBy
+slug: Web/API/Window/resizeBy
+tags:
+ - DOM
+ - DOM Reference
+ - DOM_0
+ - Window
+translation_of: Web/API/Window/resizeBy
+---
+<div>
+ {{ApiRef}}</div>
+<h2 id="Summary" name="Summary">概要</h2>
+<p>現在のウィンドウを特定の量だけリサイズします。</p>
+<h2 id="Syntax" name="Syntax">構文</h2>
+<pre class="syntaxbox">window.resizeBy(<em>xDelta</em>, <em>yDelta</em>)
+</pre>
+<h3 id="Parameters" name="Parameters">引数</h3>
+<ul>
+ <li><code>xDelta</code> : ウィンドウの水平方向へのリサイズ量 (ピクセル値)</li>
+ <li><code>yDelta</code> : ウィンドウの垂直方向へのリサイズ量 (ピクセル値)</li>
+</ul>
+<h2 id="Example" name="Example">例</h2>
+<pre class="brush:js">// ウィンドウを縮める
+window.resizeBy(-200, -200);
+</pre>
+<h2 id="Notes" name="Notes">注記</h2>
+<p>Firefox 7 より、Web サイトは<a class="link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=565541#c24">以下の規則</a>に従う場合のみしかブラウザウィンドウの初期サイズを変更する事が出来なくなりました。</p>
+<ol>
+ <li><code>window.open</code> で作成されたウィンドウ(またはタブ)しかリサイズ出来ません。</li>
+ <li>ウィンドウが複数のタブを持つ場合、ウィンドウ(またはタブ)のリサイズは出来ません。</li>
+</ol>
+<h2 id="Specification" name="Specification">仕様</h2>
+<p>{{dom0}}</p>
+<h2 id="See_also" name="See_also">関連情報</h2>
+<ul>
+ <li>{{domxref("window.resizeTo")}}</li>
+</ul>