diff options
| author | Alexey Pyltsyn <lex61rus@gmail.com> | 2021-10-20 13:28:52 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-20 13:28:52 +0300 |
| commit | 1386fed7d38652d5848d315927e7e23a66cffd13 (patch) | |
| tree | eb4b9adfec3f46c77304a1b9461d44357c8164c8 /files/ru/web/api/htmlelement/offsetleft/index.html | |
| parent | b0f32a46245b1033098a5a9826a7818fa4e65dde (diff) | |
| download | translated-content-1386fed7d38652d5848d315927e7e23a66cffd13.tar.gz translated-content-1386fed7d38652d5848d315927e7e23a66cffd13.tar.bz2 translated-content-1386fed7d38652d5848d315927e7e23a66cffd13.zip | |
[RU] Remove `name` attribute from headings (#2788)
Diffstat (limited to 'files/ru/web/api/htmlelement/offsetleft/index.html')
| -rw-r--r-- | files/ru/web/api/htmlelement/offsetleft/index.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/files/ru/web/api/htmlelement/offsetleft/index.html b/files/ru/web/api/htmlelement/offsetleft/index.html index ded2335950..aace6b67d7 100644 --- a/files/ru/web/api/htmlelement/offsetleft/index.html +++ b/files/ru/web/api/htmlelement/offsetleft/index.html @@ -11,14 +11,14 @@ translation_of: Web/API/HTMLElement/offsetLeft <p>However, for inline-level elements (such as <strong>span</strong>) that can wrap from one line to the next, <code>offsetTop</code> and <code>offsetLeft</code> describe the positions of the <em>first</em> border box (use {{domxref("Element.getClientRects()")}} to get its width and height), while <code>offsetWidth</code> and <code>offsetHeight</code> describe the dimensions of the <em>bounding</em> border box (use {{domxref("Element.getBoundingClientRect()")}} to get its position). Therefore, a box with the left, top, width and height of <code>offsetLeft</code>, <code>offsetTop</code>, <code>offsetWidth</code> and <code>offsetHeight</code> will not be a bounding box for a span with wrapped text.</p> -<h2 id="Syntax" name="Syntax">Syntax</h2> +<h2 id="Syntax">Syntax</h2> <pre class="eval notranslate"><var>left</var> = <var>element</var>.offsetLeft; </pre> <p><code><var>left</var></code> is an integer representing the offset to the left in pixels <em>from the closest relatively positioned</em> parent element.</p> -<h2 id="Example" name="Example">Example</h2> +<h2 id="Example">Example</h2> <pre class="brush: js notranslate">var colorTable = document.getElementById("t1"); var tOLeft = colorTable.offsetLeft; @@ -49,7 +49,7 @@ if (tOLeft > 5) { box.style.height = longspan.offsetHeight<span style="line-height: normal;"> + "px"</span><span style="line-height: normal;">; </span><span style="line-height: normal;"></script> </span></pre> -<h2 id="Specification" name="Specification">Specification</h2> +<h2 id="Specification">Specification</h2> <table class="standard-table"> <thead> @@ -74,7 +74,7 @@ if (tOLeft > 5) { <p>{{Compat("api.HTMLElement.offsetLeft")}}</p> -<h2 id="See_also" name="See_also">See also</h2> +<h2 id="See_also">See also</h2> <ul> <li>{{domxref("HTMLElement.offsetParent")}}, {{domxref("HTMLElement.offsetTop")}}, {{domxref("HTMLElement.offsetWidth")}}, {{domxref("HTMLElement.offsetHeight")}}</li> |
