Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

SVGForeignObjectElement

我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译!

SVG ForeignObject DOM interface

The SVGForeignObjectElement interface provides access to the properties of <foreignObject> elements, as well as methods to manipulate them.

Interface overview

Also implement SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable
Methods None
Properties
Normative document SVG 1.1 (2nd Edition)

Properties

Name Type Description
x SVGAnimatedLength Corresponds to attribute x on the given <foreignObject> element.
y SVGAnimatedLength Corresponds to attribute y on the given <foreignObject> element.
width SVGAnimatedLength Corresponds to attribute width on the given <foreignObject> element.
height SVGAnimatedLength Corresponds to attribute height on the given <foreignObject> element.

Methods

The SVGForeignObjectElement interface do not provide any specific methods.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support (Yes) (Yes) 9.0 (Yes) (Yes)
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support Not supported (Yes) ? (Yes) (Yes)

See also

文档标签和贡献者

 此页面的贡献者: fscholz, kscarfone, Sheppy, Jeremie
 最后编辑者: fscholz,