Spec-Zone.ru › SVG

Справочник атрибутов SVG

Элементы SVG можно изменять с помощью атрибутов, которые указывают подробности о том, как именно следует обрабатывать или отрисовывать элемент.

Ниже представлен список всех доступных атрибутов SVG вместе со ссылками на справочную документацию, которая поможет вам узнать, какие элементы их поддерживают и как они работают.

Атрибуты SVG от A до Z

A

  • accent-height
  • accumulate
  • additive
  • alignment-baseline
  • alphabetic
  • amplitude
  • arabic-form
  • ascent
  • attributeName
  • attributeType
  • azimuth

B

  • baseFrequency
  • baseline-shift
  • baseProfile
  • bbox
  • begin
  • bias
  • by

C

  • calcMode
  • cap-height
  • class
  • clip
  • clipPathUnits
  • clip-path
  • clip-rule
  • color
  • color-interpolation
  • color-interpolation-filters
  • color-rendering
  • crossorigin
  • cursor
  • cx
  • cy

D

  • d
  • decelerate
  • descent
  • diffuseConstant
  • direction
  • display
  • divisor
  • dominant-baseline
  • dur
  • dx
  • dy

E

  • edgeMode
  • elevation
  • end
  • exponent

F

  • fill
  • fill-opacity
  • fill-rule
  • filter
  • filterUnits
  • flood-color
  • flood-opacity
  • font-family
  • font-size
  • font-size-adjust
  • font-stretch
  • font-style
  • font-variant
  • font-weight
  • format
  • from
  • fr
  • fx
  • fy

G

  • g1
  • g2
  • glyph-name
  • glyph-orientation-horizontal
  • glyph-orientation-vertical
  • glyphRef
  • gradientTransform
  • gradientUnits

H

  • hanging
  • height
  • href
  • hreflang
  • horiz-adv-x
  • horiz-origin-x

I

  • id
  • ideographic
  • image-rendering
  • in
  • in2
  • intercept

K

  • k
  • k1
  • k2
  • k3
  • k4
  • kernelMatrix
  • kernelUnitLength
  • keyPoints
  • keySplines
  • keyTimes

L

  • lang
  • lengthAdjust
  • letter-spacing
  • lighting-color
  • limitingConeAngle
  • local
END_OF_DOCUMENT_MARKER

М

  • marker-end
  • marker-mid
  • marker-start
  • markerHeight
  • markerUnits
  • markerWidth
  • mask
  • maskContentUnits
  • maskUnits
  • mathematical
  • max
  • media
  • method
  • min
  • mode

Н

  • name
  • numOctaves

О

  • offset
  • opacity
  • operator
  • order
  • orient
  • orientation
  • origin
  • overflow
  • overline-position
  • overline-thickness

П

  • panose-1
  • paint-order
  • path
  • pathLength
  • patternContentUnits
  • patternTransform
  • patternUnits
  • ping
  • pointer-events
  • points
  • pointsAtX
  • pointsAtY
  • pointsAtZ
  • preserveAlpha
  • preserveAspectRatio
  • primitiveUnits

Р

  • r
  • radius
  • referrerPolicy
  • refX
  • refY
  • rel
  • rendering-intent
  • repeatCount
  • repeatDur
  • requiredExtensions
  • requiredFeatures
  • restart
  • result
  • rotate
  • rx
  • ry

С

  • scale
  • seed
  • shape-rendering
  • slope
  • spacing
  • specularConstant
  • specularExponent
  • speed
  • spreadMethod
  • startOffset
  • stdDeviation
  • stemh
  • stemv
  • stitchTiles
  • stop-color
  • stop-opacity
  • strikethrough-position
  • strikethrough-thickness
  • string
  • stroke
  • stroke-dasharray
  • stroke-dashoffset
  • stroke-linecap
  • stroke-linejoin
  • stroke-miterlimit
  • stroke-opacity
  • stroke-width
  • style
  • surfaceScale
  • systemLanguage

Т

  • tabindex
  • tableValues
  • target
  • targetX
  • targetY
  • text-anchor
  • text-decoration
  • text-rendering
  • textLength
  • to
  • transform
  • transform-origin
  • type

У

  • u1
  • u2
  • underline-position
  • underline-thickness
  • unicode
  • unicode-bidi
  • unicode-range
  • units-per-em

В

  • v-alphabetic
  • v-hanging
  • v-ideographic
  • v-mathematical
  • values
  • vector-effect
  • version
  • vert-adv-y
  • vert-origin-x
  • vert-origin-y
  • viewBox
  • visibility

W

  • width
  • widths
  • word-spacing
  • writing-mode

Х

  • x
  • x-height
  • x1
  • x2
  • xChannelSelector
  • xlink:actuate
  • xlink:arcrole
  • xlink:href Deprecated
  • xlink:role
  • xlink:show
  • xlink:title
  • xlink:type
  • xml:lang
  • xml:space

Y

  • y
  • y1
  • y2
  • yChannelSelector

Z

  • z
  • zoomAndPan

Атрибуты SVG по категориям

Общие атрибуты

  • Основные атрибуты
    • id
    • class
    • style
    • lang
    • tabindex
    • xml:lang
    • xml:space
  • Атрибуты условной обработки
    • requiredExtensions
    • requiredFeatures
    • systemLanguage

Атрибуты XLink

  • xlink:href Устаревший
  • xlink:type
  • xlink:role
  • xlink:arcrole
  • xlink:title
  • xlink:show
  • xlink:actuate

Атрибуты отображения

Примечание: Все атрибуты отображения SVG могут быть использованы в качестве свойств CSS.

  • alignment-baseline
  • baseline-shift
  • clip
  • clip-path
  • clip-rule
  • color
  • color-interpolation
  • color-interpolation-filters
  • color-rendering
  • cursor
  • d
  • direction
  • display
  • dominant-baseline
  • fill
  • fill-opacity
  • fill-rule
  • filter
  • flood-color
  • flood-opacity
  • font-family
  • font-size
  • font-size-adjust
  • font-stretch
  • font-style
  • font-variant
  • font-weight
  • glyph-orientation-horizontal
  • glyph-orientation-vertical
  • image-rendering
  • letter-spacing
  • lighting-color
  • marker-end
  • marker-mid
  • marker-start
  • mask
  • opacity
  • overflow
  • pointer-events
  • shape-rendering
  • stop-color
  • stop-opacity
  • stroke
  • stroke-dasharray
  • stroke-dashoffset
  • stroke-linecap
  • stroke-linejoin
  • stroke-miterlimit
  • stroke-opacity
  • stroke-width
  • text-anchor
  • text-decoration
  • text-rendering
  • transform
  • transform-origin
  • unicode-bidi
  • vector-effect
  • visibility
  • word-spacing
  • writing-mode

Атрибуты фильтров

Примитивные атрибуты фильтра
height, result, width, x, y
Атрибуты функции передачи
type, tableValues, slope, intercept, amplitude, exponent, offset

Атрибуты анимации

Атрибуты целевого элемента анимации
href
Атрибуты целевого атрибута анимации
attributeType, attributeName
Атрибуты временной шкалы анимации
begin, dur, end, min, max, restart, repeatCount, repeatDur, fill
Атрибуты значения анимации
calcMode, values, keyTimes, keySplines, from, to, by, autoReverse, accelerate, decelerate
Дополнительные атрибуты анимации
additive, accumulate

Атрибуты событий

  • onabort
  • onactivate
  • onbegin
  • oncancel
  • oncanplay
  • oncanplaythrough
  • onchange
  • onclick
  • onclose
  • oncuechange
  • ondblclick
  • ondrag
  • ondragend
  • ondragenter
  • ondragleave
  • ondragover
  • ondragstart
  • ondrop
  • ondurationchange
  • onemptied
  • onend
  • onended
  • onerror
  • onerror
  • onfocus
  • onfocusin
  • onfocusout
  • oninput
  • oninvalid
  • onkeydown
  • onkeypress
  • onkeyup
  • onload
  • onloadeddata
  • onloadedmetadata
  • onloadstart
  • onmousedown
  • onmouseenter
  • onmouseleave
  • onmousemove
  • onmouseout
  • onmouseover
  • onmouseup
  • onmousewheel
  • onpause
  • onplay
  • onplaying
  • onprogress
  • onratechange
  • onrepeat
  • onreset
  • onresize
  • onresize
  • onscroll
  • onscroll
  • onseeked
  • onseeking
  • onselect
  • onshow
  • onstalled
  • onsubmit
  • onsuspend
  • ontimeupdate
  • ontoggle
  • onunload
  • onvolumechange
  • onwaiting

См. также

  • Справочник по элементам SVG
  • Учебник по SVG
  • Справочник по интерфейсам SVG

© 2005–2024 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API