diff options
author | Alexey Pyltsyn <lex61rus@gmail.com> | 2021-10-18 20:28:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-18 20:28:37 +0300 |
commit | 05564d56aa54eb11cbdc3684e1b4a843a3b9196c (patch) | |
tree | a3fc1bf9cbc05337af99495d6892ee886236b279 /files/ru/web/svg/attribute/viewbox | |
parent | 8bd9f80b24f0312c6138cfaa125eebb8f3aa7a3e (diff) | |
download | translated-content-05564d56aa54eb11cbdc3684e1b4a843a3b9196c.tar.gz translated-content-05564d56aa54eb11cbdc3684e1b4a843a3b9196c.tar.bz2 translated-content-05564d56aa54eb11cbdc3684e1b4a843a3b9196c.zip |
[RU] Fix live samples (#2767)
Diffstat (limited to 'files/ru/web/svg/attribute/viewbox')
-rw-r--r-- | files/ru/web/svg/attribute/viewbox/index.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/files/ru/web/svg/attribute/viewbox/index.html b/files/ru/web/svg/attribute/viewbox/index.html index a3ad81efdb..2589efe86a 100644 --- a/files/ru/web/svg/attribute/viewbox/index.html +++ b/files/ru/web/svg/attribute/viewbox/index.html @@ -11,6 +11,7 @@ translation_of: Web/SVG/Attribute/viewBox <p>Значение атрибута <code>viewBox</code> — это набор четырёх чисел: <code>min-x</code>, <code>min-y</code>, <code>width</code> и <code>height</code>, — разделённых пробелами и/или запятой, которые задают прямоугольник в пользовательском пространстве, стороны которого определяют границы окна отображения элемента SVG (не <a href="/ru/docs/%D0%A1%D0%BB%D0%BE%D0%B2%D0%B0%D1%80%D1%8C/Viewport">браузера</a>).</p> +<div id="topExample"> <div class="hidden"> <pre class="notranslate">html, body, svg { height:100% @@ -69,6 +70,7 @@ svg:not(:root) { </svg></pre> <p>{{EmbedLiveSample('topExample', '100%', 200)}}</p> +</div> <p>На отображение с <code>viewBox</code> также влияет атрибут {{ SVGAttr("preserveAspectRatio") }}.</p> |