SVGSymbolElement

Baseline 已廣泛支援

此特性已相當成熟,可在許多裝置和瀏覽器版本上使用。自 ⁨2015 年 7 月⁩以來,各瀏覽器均已提供此特性。

SVGSymbolElement 介面對應於 <symbol> 元素。

EventTarget Node Element SVGElement SVGGraphicsElement SVGSymbolElement

例項屬性

此介面還繼承了其父介面 SVGGraphicsElement 的屬性。

SVGSymbolElement.viewBox 只讀

一個 SVGAnimatedRect 物件,對應於給定 <symbol> 元素的 viewBox 屬性。

SVGSymbolElement.preserveAspectRatio 只讀

一個 SVGAnimatedPreserveAspectRatio 物件,對應於給定 <symbol> 元素的 preserveAspectRatio 屬性。

例項方法

此介面不實現任何特定方法,但繼承了其父介面 SVGGraphicsElement 的方法。

規範

規範
Scalable Vector Graphics (SVG) 2
# 介面SVGSymbolElement

瀏覽器相容性