diff options
Diffstat (limited to 'files/pl/web/api/document/height/index.html')
| -rw-r--r-- | files/pl/web/api/document/height/index.html | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/files/pl/web/api/document/height/index.html b/files/pl/web/api/document/height/index.html new file mode 100644 index 0000000000..1f777a7eb5 --- /dev/null +++ b/files/pl/web/api/document/height/index.html @@ -0,0 +1,34 @@ +--- +title: document.height +slug: Web/API/Document/height +tags: + - DOM + - DOM_0 + - Dokumentacja_Gecko_DOM + - Gecko + - Wszystkie_kategorie +translation_of: Web/API/Document/height +--- +<p>{{ ApiRef() }}</p> +<h3 id="Podsumowanie" name="Podsumowanie">Podsumowanie</h3> +<p><b>height</b> pobiera/ustawia wysokość dokumentu.</p> +<h3 id="Sk.C5.82adnia" name="Sk.C5.82adnia">Składnia</h3> +<pre class="eval"><i>wysokość</i> = document.height +document.height =<i>wysokość</i> +</pre> +<h3 id="Parametry" name="Parametry">Parametry</h3> +<ul> + <li><code>wysokość</code> jest ciągiem reprezentującym wysokość dokumentu w pikselach, calach bądź poprzez <code>em</code>. Jesli nie zostanie określona jednostka (jak np. "px" w "200px"), domyślnie przyjmowane są piksele.</li> +</ul> +<h3 id="Przyk.C5.82ad" name="Przyk.C5.82ad">Przykład</h3> +<pre class="eval">// zmniejsz okno po załadowaniu +function onLoad() { + document.height = "200"; + document.width = "200"; +} +</pre> +<h3 id="Uwagi" name="Uwagi">Uwagi</h3> +<p>Zobacz także <a href="pl/DOM/document.width">DOM:document.width</a>.</p> +<h3 id="Specyfikacja" name="Specyfikacja">Specyfikacja</h3> +<p>{{ DOM0() }}</p> +<p>{{ languages( { "en": "en/DOM/document.height" } ) }}</p> |
