diff options
author | Alexey Pyltsyn <lex61rus@gmail.com> | 2021-10-27 02:20:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-27 02:20:30 +0300 |
commit | 374a039b97a11ee7306539d16aaab27fed66b398 (patch) | |
tree | 050af12f891977b565e4c17bff154a7e05bd68d0 /files/ru/web/html | |
parent | df462c4ce3c50450bece6af076e6bc012afeee96 (diff) | |
download | translated-content-374a039b97a11ee7306539d16aaab27fed66b398.tar.gz translated-content-374a039b97a11ee7306539d16aaab27fed66b398.tar.bz2 translated-content-374a039b97a11ee7306539d16aaab27fed66b398.zip |
[RU] Fix some live samples (#2873)
Diffstat (limited to 'files/ru/web/html')
-rw-r--r-- | files/ru/web/html/element/input/range/index.html | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/files/ru/web/html/element/input/range/index.html b/files/ru/web/html/element/input/range/index.html index 781766483d..a3fcca88d8 100644 --- a/files/ru/web/html/element/input/range/index.html +++ b/files/ru/web/html/element/input/range/index.html @@ -294,7 +294,7 @@ translation_of: Web/HTML/Element/input/range <p>Рассмотрим контроллер диапазона:</p> <div id="Orientation_sample1"> -<pre class="notranslate"><input type="range" id="volume" min="0" max="11" value="7" step="1"></pre> +<pre class="brush: html"><input type="range" id="volume" min="0" max="11" value="7" step="1"></pre> <p>{{EmbedLiveSample("Orientation_sample1", 200, 200, "https://mdn.mozillademos.org/files/14983/Orientation_sample1.png")}}</p> </div> @@ -308,14 +308,14 @@ translation_of: Web/HTML/Element/input/range <div id="Orientation_sample2"> <h4 id="CSS">CSS</h4> -<pre class="notranslate">#volume { +<pre class="brush: css">#volume { height: 150px; width: 50px; }</pre> <h4 id="HTML">HTML</h4> -<pre class="notranslate"><input type="range" id="volume" min="0" max="11" value="7" step="1"></pre> +<pre class="brush: html"><input type="range" id="volume" min="0" max="11" value="7" step="1"></pre> <h4 id="Результат">Результат</h4> @@ -371,7 +371,7 @@ translation_of: Web/HTML/Element/input/range <p>Используем тот же HTML что и в предыдущем примере:</p> -<pre class="notranslate"><input type="range" min="0" max="11" value="7" step="1"> +<pre class="brush: html"><input type="range" min="0" max="11" value="7" step="1"> </pre> <h4 id="CSS_3">CSS</h4> @@ -392,7 +392,7 @@ translation_of: Web/HTML/Element/input/range <p>Используем тот же HTML что и в предыдущем примере и добавляем атрибут со значением <code>vertical</code>:</p> -<pre class="notranslate"><input type="range" min="0" max="11" value="7" step="1" orient="vertical"> +<pre class="brush: html"><input type="range" min="0" max="11" value="7" step="1" orient="vertical"> </pre> <p>{{EmbedLiveSample("orient_attribute", 200, 200)}}</p> @@ -405,14 +405,14 @@ translation_of: Web/HTML/Element/input/range <p>Используем тот же HTML что и в предыдущем примере:</p> -<pre class="notranslate"><input type="range" min="0" max="11" value="7" step="1"> +<pre class="brush:html notranslate"><input type="range" min="0" max="11" value="7" step="1"> </pre> <h4 id="CSS_4">CSS</h4> <p>Берём только те инпуты что имеют тип range, меняем writing mode с default на <code>bt-lr</code>, или bottom-to-top и left-to-right:</p> -<pre class="notranslate">input[type="range"] { +<pre class="brush: css notranslate">input[type="range"] { writing-mode: bt-lr; }</pre> @@ -426,14 +426,14 @@ translation_of: Web/HTML/Element/input/range <p>Оставим <code>orient</code> атрибут со значением <code>vertical</code> для Firefox:</p> -<pre class="notranslate"><input type="range" min="0" max="11" value="7" step="1" orient="vertical"> +<pre class="brush: html"><input type="range" min="0" max="11" value="7" step="1" orient="vertical"> </pre> <h4 id="CSS_5">CSS</h4> <p>Берём только те инпуты что имеют тип range, меняем writing mode с default на <code>bt-lr</code>, или bottom-to-top и left-to-right, для Edge и Internet Explorer, и добавляем <code>-webkit-appearance: slider-vertical</code> для всех -webkit-based браузеров:</p> -<pre class="notranslate">input[type="range"] { +<pre class="brush: css notranslate">input[type="range"] { writing-mode: bt-lr; -webkit-appearance: slider-vertical; }</pre> |