Spec-Zone.ru › SVG

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

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

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

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

>

A

  • accumulate
  • additive
  • alignment-baseline
  • amplitude
  • attributeName
  • attributeType
  • azimuth

B

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

C

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

D

  • d
  • data-*
  • decoding
  • diffuseConstant
  • direction
  • display
  • divisor
  • dominant-baseline
  • dur
  • dx
  • dy

E

  • edgeMode
  • elevation
  • end
  • exponent

F

  • fetchpriority
  • 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
  • fr
  • from
  • fx
  • fy

G

  • glyph-orientation-horizontal
  • glyph-orientation-vertical
  • gradientTransform
  • gradientUnits

H

  • height
  • href
  • hreflang

I

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

K

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

L

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

M

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

N

  • numOctaves

O

  • offset
  • opacity
  • operator
  • order
  • orient
  • origin
  • overflow

P

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

R

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

S

  • scale
  • seed
  • shape-rendering
  • side
  • slope
  • spacing
  • specularConstant
  • specularExponent
  • spreadMethod
  • startOffset
  • stdDeviation
  • stitchTiles
  • stop-color
  • stop-opacity
  • stroke
  • stroke-dasharray
  • stroke-dashoffset
  • stroke-linecap
  • stroke-linejoin
  • stroke-miterlimit
  • stroke-opacity
  • stroke-width
  • style
  • surfaceScale
  • systemLanguage

T

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

U

  • unicode-bidi

V

  • values
  • vector-effect
  • version
  • viewBox
  • visibility

W

  • width
  • word-spacing
  • writing-mode

X

  • x
  • x1
  • x2
  • xChannelSelector
  • xlink:actuate
  • xlink:arcrole
  • xlink:href Устарело
  • 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
  • cursor
  • cx
  • cy
  • 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
  • height
  • image-rendering
  • letter-spacing
  • lighting-color
  • marker-end
  • marker-mid
  • marker-start
  • mask
  • mask-type
  • opacity
  • overflow
  • pointer-events
  • r
  • rx
  • ry
  • 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
  • width
  • word-spacing
  • writing-mode
  • x
  • y

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

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

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

Атрибуты сложения анимации

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–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute

Spec-Zone.ru

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