aboutsummaryrefslogtreecommitdiff
path: root/files/pl/web/api/element/offsetleft/index.html
diff options
context:
space:
mode:
authorFlorian Merz <me@fiji-flo.de>2021-02-11 14:49:24 +0100
committerFlorian Merz <me@fiji-flo.de>2021-02-11 14:49:24 +0100
commitde5c456ebded0e038adbf23db34cc290c8829180 (patch)
tree2819c07a177bb7ec5f419f3f6a14270d6bcd7fda /files/pl/web/api/element/offsetleft/index.html
parent8260a606c143e6b55a467edf017a56bdcd6cba7e (diff)
downloadtranslated-content-de5c456ebded0e038adbf23db34cc290c8829180.tar.gz
translated-content-de5c456ebded0e038adbf23db34cc290c8829180.tar.bz2
translated-content-de5c456ebded0e038adbf23db34cc290c8829180.zip
unslug pl: move
Diffstat (limited to 'files/pl/web/api/element/offsetleft/index.html')
-rw-r--r--files/pl/web/api/element/offsetleft/index.html73
1 files changed, 0 insertions, 73 deletions
diff --git a/files/pl/web/api/element/offsetleft/index.html b/files/pl/web/api/element/offsetleft/index.html
deleted file mode 100644
index b0252f3363..0000000000
--- a/files/pl/web/api/element/offsetleft/index.html
+++ /dev/null
@@ -1,73 +0,0 @@
----
-title: element.offsetLeft
-slug: Web/API/Element/offsetLeft
-tags:
- - DOM
- - Dokumentacja_Gecko_DOM
- - Gecko
- - Strony_wymagające_dopracowania
- - Wszystkie_kategorie
-translation_of: Web/API/HTMLElement/offsetLeft
----
-<p>{{ ApiRef("HTML DOM") }}</p>
-
-<h3 id="Podsumowanie" name="Podsumowanie">Podsumowanie</h3>
-
-<p>Zwraca ilość pikseli, jaką dzieli<em>górny lewy róg</em> bieżącego elementu od lewej strony wewnątrz węzła <code><a href="pl/DOM/element.offsetParent">offsetParent</a></code>.</p>
-
-<h3 id="Sk.C5.82adnia" name="Sk.C5.82adnia">Składnia</h3>
-
-<pre class="eval"><em>left</em> =<em>element</em>.offsetLeft;
-</pre>
-
-<p><code>left</code> jest liczbą całkowitą reprezentująca przesunięcie od lewej strony podane w pikselach.</p>
-
-<h3 id="Uwaga" name="Uwaga">Uwaga</h3>
-
-<p><code>offsetLeft</code> returns the position the upper left edge of the element; not necessarily the 'real' left edge of the element. This is important for inline elements (such as <strong>span</strong>) in flowed text that wraps from one line to the next. The span may start in the middle of the line and wrap around to the beginning of the next line. The <code>offsetLeft</code> will refer to the left edge of the start of the span, not the left edge of text at the start of the second line. Therefore, a box with the left, top, width and height of <code>offsetLeft, offsetTop, offsetWidth</code> and <code>offsetHeight</code> will not be a bounding box for a span with wrapped text. (And, I can't figure out how to find the leftmost edge of such a span, sigh.)</p>
-
-<h3 id="Przyk.C5.82ad" name="Przyk.C5.82ad">Przykład</h3>
-
-<pre>var colorTable = document.getElementById("t1");
-var tOLeft = colorTable.offsetLeft;
-
-if (tOLeft &gt; 5) {
- // duże lewe przesunięcie: zrób coś tutaj
-}
-</pre>
-
-<h3 id="Przyk.C5.82ad_2" name="Przyk.C5.82ad_2">Przykład</h3>
-
-<p>Per the note above, this example shows a 'long' sentence that wraps within a div with a blue border, and a red box that one might think should describe the boundaries of the span.</p>
-
-<p><img alt="Image:offsetLeft.jpg"></p>
-
-<p><small><font color="gray">Note: This is an image of the example, not a live rendering in the browser. This was done because script elements can't be included in the wiki page.</font></small></p>
-
-<pre>&lt;div style="width: 300px; border-color:blue;
- border-style:solid; border-width:1;"&gt;
- &lt;span&gt;Short span. &lt;/span&gt;
- &lt;span id="long"&gt;Long span that wraps withing this div.&lt;/span&gt;
-&lt;/div&gt;
-
-&lt;div id="box" style="position: absolute; border-color: red;
- border-width: 1; border-style: solid; z-index: 10"&gt;
-&lt;/div&gt;
-
-&lt;script&gt;
- var box = document.getElementById("box");
- var long = document.getElementById("long");
- box.style.left = long.offsetLeft + document.body.scrollLeft;
- box.style.top = long.offsetTop + document.body.scrollTop;
- box.style.width = long.offsetWidth;
- box.style.height = long.offsetHeight;
-&lt;/script&gt;
-</pre>
-
-<h3 id="Zobacz_tak.C5.BCe" name="Zobacz_tak.C5.BCe">Zobacz także</h3>
-
-<p><code><a href="pl/DOM/element.offsetParent">offsetParent</a></code>, <code><a href="pl/DOM/element.offsetTop">offsetTop</a></code>, <code><a href="pl/DOM/element.offsetWidth">offsetWidth</a></code>, <code><a href="pl/DOM/element.offsetHeight">offsetHeight</a></code></p>
-
-<h3 id="Specyfikacja" name="Specyfikacja">Specyfikacja</h3>
-
-<p>Niestandardowa własność.</p>