aboutsummaryrefslogtreecommitdiff
path: root/files/ru/web/api/htmlelement/offsettop/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/ru/web/api/htmlelement/offsettop/index.html')
-rw-r--r--files/ru/web/api/htmlelement/offsettop/index.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/files/ru/web/api/htmlelement/offsettop/index.html b/files/ru/web/api/htmlelement/offsettop/index.html
index e001d4e951..f5b5170132 100644
--- a/files/ru/web/api/htmlelement/offsettop/index.html
+++ b/files/ru/web/api/htmlelement/offsettop/index.html
@@ -9,18 +9,18 @@ translation_of: Web/API/HTMLElement/offsetTop
<p><strong><code>HTMLElement.offsetTop - </code></strong><code>свойство элемента доступно только для чтения,</code> возвращает расстояние текущего элемента по отношению к верхней части {{domxref("HTMLelement.offsetParent","offsetParent")}} узла.</p>
-<h2 id="Syntax" name="Syntax">Синтаксис</h2>
+<h2 id="Syntax">Синтаксис</h2>
<pre class="syntaxbox"><var>topPos</var> = element.offsetTop;
</pre>
-<h3 id="Parameters" name="Parameters">Параметры</h3>
+<h3 id="Parameters">Параметры</h3>
<ul>
<li><code>topPos</code> - <code>это количество пикселей на которые делается отступ сверху, отсносительно родительского элемента.</code></li>
</ul>
-<h2 id="Example" name="Example">Пример</h2>
+<h2 id="Example">Пример</h2>
<pre class="brush:js">var d = document.getElementById("div1");
var topPos = d.offsetTop;
@@ -30,7 +30,7 @@ if (topPos &gt; 10) {
// чем 10 пикселей относительно своего родителя
}</pre>
-<h2 id="Specification" name="Specification">Спецификация</h2>
+<h2 id="Specification">Спецификация</h2>
<table class="standard-table">
<thead>
@@ -49,7 +49,7 @@ if (topPos &gt; 10) {
</tbody>
</table>
-<h2 id="Compatibility" name="Compatibility">Совместимость с браузерами</h2>
+<h2 id="Compatibility">Совместимость с браузерами</h2>