1. Веб-технологии для разработчиков
  2. SVG
  3. Reference
  4. Справочник SVG атрибутов
  5. x

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

x

Атрибут x определяет координату по оси x в пользовательской системе координат.

Этот атрибут можно использовать для следующих SVG-элементов:

Пример

html,
body,
svg {
 height: 100%;
}
html
<svg viewBox="0 0 300 100" xmlns="http://www.w3.org/2000/svg">
 <rect x="20" y="20" width="60" height="60" />
 <rect x="120" y="20" width="60" height="60" />
 <rect x="220" y="20" width="60" height="60" />
</svg>

Спецификации

Specification
Filter Effects Module Level 1
# element-attrdef-filter-x
Filter Effects Module Level 1
# element-attrdef-fespotlight-x
Filter Effects Module Level 1
# element-attrdef-fepointlight-x
Filter Effects Module Level 1
# element-attrdef-filter-primitive-x
CSS Masking Module Level 1
# element-attrdef-mask-x
Scalable Vector Graphics (SVG) 2
# X
Scalable Vector Graphics (SVG) 2
# PatternElementXAttribute
Scalable Vector Graphics (SVG) 2
# TextElementXAttribute

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.

AltStyle によって変換されたページ (->オリジナル) /