diff options
Diffstat (limited to 'files/ja/web/api/window/sizetocontent/index.html')
| -rw-r--r-- | files/ja/web/api/window/sizetocontent/index.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/files/ja/web/api/window/sizetocontent/index.html b/files/ja/web/api/window/sizetocontent/index.html new file mode 100644 index 0000000000..6d8afcc2d1 --- /dev/null +++ b/files/ja/web/api/window/sizetocontent/index.html @@ -0,0 +1,24 @@ +--- +title: window.sizeToContent +slug: Web/API/Window/sizeToContent +tags: + - DOM + - DOM_0 + - Gecko + - Gecko DOM Reference + - Window +translation_of: Web/API/Window/sizeToContent +--- +<div> + {{ApiRef}}</div> +<h2 id="Summary" name="Summary">概要</h2> +<p>コンテンツの大きさにウィンドウのサイズを変更します。</p> +<p>DOM コンテンツはこの関数が呼び出されたときに読み込まれるべきです。例えば、<a href="/ja/docs/Web/Reference/Events/DOMContentLoaded"><code>DOMContentLoaded</code></a> イベント後などです。</p> +<h2 id="Syntax" name="Syntax">構文</h2> +<pre class="syntaxbox">window.sizeToContent() +</pre> +<h2 id="Example" name="Example">例</h2> +<pre class="brush:js">window.sizeToContent(); +</pre> +<h2 id="Specification" name="Specification">仕様</h2> +<p>{{DOM0}}</p> |
