aboutsummaryrefslogtreecommitdiff
path: root/files/ru/web/api/element/scrollheight
diff options
context:
space:
mode:
Diffstat (limited to 'files/ru/web/api/element/scrollheight')
-rw-r--r--files/ru/web/api/element/scrollheight/index.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/files/ru/web/api/element/scrollheight/index.html b/files/ru/web/api/element/scrollheight/index.html
index b6bd9333ee..66f1f574e4 100644
--- a/files/ru/web/api/element/scrollheight/index.html
+++ b/files/ru/web/api/element/scrollheight/index.html
@@ -11,14 +11,14 @@ translation_of: Web/API/Element/scrollHeight
<p>Это свойство округляет значение до целого числа. Если вам нужно дробное значение, используйте {{ domxref("Element.getBoundingClientRect()") }}.</p>
</div>
-<h2 id="Syntax_and_values" name="Syntax_and_values">Синтаксис</h2>
+<h2 id="Syntax_and_values">Синтаксис</h2>
<pre class="eval notranslate">var <em>intElemScrollHeight</em> = document.getElementById(<em>id_attribute_value</em>).scrollHeight;
</pre>
<p><em>intElemScrollHeight</em> - переменная, хранящая целое число, соответствующее пиксельному значению scrollHeight элемента. scrollHeight является свойством только для чтения.</p>
-<h2 id="Example" name="Example">Пример</h2>
+<h2 id="Example">Пример</h2>
<div id="offsetContainer" style="margin: 40px 50px 50px; background-color: rgb(255, 255, 204); border: 4px dashed black; color: black; position: relative; display: inline-block;">
<div id="idDiv" style="margin: 24px 29px; border: 24px black solid; padding: 0px 28px; width: 199px; height: 102px; overflow: auto; background-color: white; font-size: 13px!important; font-family: Arial, sans-serif;">
@@ -42,7 +42,7 @@ translation_of: Web/API/Element/scrollHeight
<pre class="syntaxbox notranslate">element.scrollHeight - element.scrollTop === element.clientHeight</pre>
-<h2 id="scrollHeight_Demo" name="scrollHeight_Demo">Пример работы scrollHeight</h2>
+<h2 id="scrollHeight_Demo">Пример работы scrollHeight</h2>
<p>Если объединить это выражение с событием <code><a href="/en-US/docs/DOM/element.onscroll" title="en-US/docs/DOM/element.onscroll">onscroll</a></code>, оно может быть использовано для того, чтобы определить, прочитал ли пользователь текст, или нет (см. также свойства <code><a href="/en-US/docs/DOM/element.scrollTop" title="en-US/docs/DOM/element.scrollTop">element.scrollTop</a></code> и <code><a href="/en-US/docs/DOM/element.clientHeight" title="en-US/docs/DOM/element.clientHeight">element.clientHeight</a></code>). Например:</p>
@@ -122,7 +122,7 @@ onload = function () {
<p>{{ EmbedLiveSample('scrollHeight_Demo', '640', '400') }}</p>
-<h2 id="Specification" name="Specification">Спецификация</h2>
+<h2 id="Specification">Спецификация</h2>
<table class="standard-table">
<tbody>
@@ -139,7 +139,7 @@ onload = function () {
</tbody>
</table>
-<h2 id="Supported" name="Supported">Совместимость с браузерами</h2>
+<h2 id="Supported">Совместимость с браузерами</h2>
<table class="standard-table">
<tbody>
@@ -168,7 +168,7 @@ onload = function () {
<p><strong>В версиях Firefox до 21-й:</strong> когда контент элемента не создаёт вертикальную полосу прокрутки, его свойство <code style="font-size: 14px;">scrollHeight</code><span style="line-height: 1.5;"> равно значению </span><code style="font-size: 14px;">clientHeight</code><span style="line-height: 1.5;">. Это может означать либо то, что контента слишком мало, чтобы ему потребовалась полоса прокрутки, либо то, что у элемента значение CSS-свойства overflow равно visible (в этом случае прокрутка отсутствует).</span></p>
-<h2 id="See_Also" name="See_Also">Смотрите также</h2>
+<h2 id="See_Also">Смотрите также</h2>
<ul>
<li><a href="https://docs.microsoft.com/en-us/previous-versions//hh781509(v=vs.85)">MSDN Измерение размера и положения элемента с помощью CSSOM в Internet Explorer 9</a></li>