SVGUseElement
SVG 使用 DOM 接口
该 SVGUseElement 接口对应于<use>元素。
性质
此接口还从其父接口SVGGraphicsElement 继承属性,并从SVGURIReference (en-US)实现属性。
SVGUseElement.x只读-
An
SVGAnimatedLength(en-US) corresponding to thexattribute of the given element. SVGUseElement.y只读-
An
SVGAnimatedLength(en-US) corresponding to theyattribute of the given element. SVGUseElement.width只读-
An
SVGAnimatedLength(en-US) corresponding to thewidthattribute of the given element. SVGUseElement.height只读-
An
SVGAnimatedLength(en-US) corresponding to theheightattribute of the given element. SVGUseElement.instanceRoot只读-
An
SVGElementcorresponding to the instance root of the given element, which is a direct child of the elements shadow root. If the element does not have a shadow tree (for example, because its URI is invalid or because it has been disabled by conditional processing), then getting this attribute returnsnull. SVGUseElement.animatedInstanceRoot只读-
An
SVGElementcorresponding to the instance root of the given element, which is a direct child of the elements shadow root. If the element does not have a shadow tree (for example, because its URI is invalid or because it has been disabled by conditional processing), then getting this attribute returnsnull.
Methods
This interface doesn't implement any specific methods, but inherits methods from its parent interface, SVGGraphicsElement and implements methods from SVGURIReference (en-US).
规范
| Specification |
|---|
| Scalable Vector Graphics (SVG) 2 # InterfaceSVGUseElement |
浏览器兼容性
BCD tables only load in the browser