SVG 元素参考

SVG 图形和图像是使用一系列专门用于构建、绘制和布局矢量图像和图表的元素创建的。在这里,你将找到每个 SVG 元素的参考文档。

SVG 元素 A 到 Z

A

C

D

E

F

G

I

L

M

P

R

S

T

U

V

按类别分类的 SVG 元素

动画元素

<animate>, <animateMotion>, <animateTransform>, <mpath>, <set>

基本形状

<circle>, <ellipse>, <line>, <polygon>, <polyline>, <rect>

容器元素

<a>, <defs>, <g>, <marker>, <mask>, <pattern>, <svg>, <switch>, <symbol>

描述性元素

<desc>, <metadata>, <title>

滤镜基元元素

<feBlend>, <feColorMatrix>, <feComponentTransfer>, <feComposite>, <feConvolveMatrix>, <feDiffuseLighting>, <feDisplacementMap>, <feDropShadow>, <feFlood>, <feFuncA>, <feFuncB>, <feFuncG>, <feFuncR>, <feGaussianBlur>, <feImage>, <feMerge>, <feMergeNode>, <feMorphology>, <feOffset>, <feSpecularLighting>, <feTile>, <feTurbulence>

渐变元素

<linearGradient>, <radialGradient>, <stop>

图形元素

<circle>, <ellipse>, <image>, <line>, <path>, <polygon>, <polyline>, <rect>, <text>, <use>

图形引用元素

<use>

光源元素

<feDistantLight>, <fePointLight>, <feSpotLight>

永不渲染的元素

<clipPath>, <defs>, <linearGradient>, <marker>, <mask>, <metadata>, <pattern>, <radialGradient>, <script>, <style>, <symbol>, <title>

绘图服务器元素

<linearGradient>, <pattern>, <radialGradient>

可渲染元素

<a>, <circle>, <ellipse>, <foreignObject>, <g>, <image>, <line>, <path>, <polygon>, <polyline>, <rect>, <svg>, <switch>, <symbol>, <text>, <textPath>, <tspan>, <use>

形状元素

<circle>, <ellipse>, <line>, <path>, <polygon>, <polyline>, <rect>

结构元素

<defs>, <g>, <svg>, <symbol>, <use>

文本内容元素

<textPath>, <text>, <tspan>

文本内容子元素

<textPath>, <tspan>

未分类元素

<clipPath>, <filter>, <foreignObject>, <script>, <style>, <view>

另见