内容表

type

type attribute is a generic attribute and it has different meaning based on the context in which it's used.

  • 对于 <animateTransform> element, it defines the type of transformation, whose values change over time.
  • 对于 <feColorMatrix> element, it indicates the type of matrix operation. The keyword matrix indicates that a full 5x4 matrix of values will be provided. The other keywords represent convenience shortcuts to allow commonly used color operations to be performed without specifying a complete matrix.
  • 对于 <feFuncR> , <feFuncG> , <feFuncB> ,和 <feFuncA> elements, it Indicates the type of component transfer function.
  • 对于 <feTurbulence> element, it indicates whether the filter primitive should perform a noise or turbulence function.
  • 对于 <style> and <script> elements, it defines the content type of the element.

You can use this attribute with the following SVG elements:

Usage context

For the <animateTransform> 元素

类别 None
translate | scale | rotate | skewX | skewY
Animatable No
Normative document SVG 1.1 (2nd Edition)

For the <feColorMatrix> element

类别 None
matrix | saturate | hueRotate | luminanceToAlpha
Animatable Yes
Normative document SVG 1.1 (2nd Edition)

For the <feFuncR> , <feFuncG> , <feFuncB> ,和 <feFuncA> 元素

类别 None
identity | table | discrete | linear | gamma
Animatable Yes
Normative document SVG 1.1 (2nd Edition)

For the <feTurbulence> element

类别 None
fractalNoise | turbulence
Animatable Yes
Normative document SVG 1.1 (2nd Edition)

For the <style> and <script> elements

Categories None
Value <content-type>
Animatable No
Normative document SVG 1.1 (2nd Edition) : script
SVG 1.1 (2nd Edition) : style

Found a problem with this page?

最后修改: , 由 MDN 贡献者