← 返回首页
SVGDefsElement - Web APIs | MDN

SVGDefsElement

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

The SVGDefsElement interface corresponds to the <defs> element.

EventTarget Node Element SVGElement SVGGraphicsElement SVGDefsElement

In this article

Instance properties

This interface doesn't implement any specific properties, but inherits properties from its parent, SVGGraphicsElement.

Instance methods

This interface doesn't implement any specific methods, but inherits methods from its parent, SVGGraphicsElement.

Specifications

Specification
Scalable Vector Graphics (SVG) 2
# InterfaceSVGDefsElement

Browser compatibility

Enable JavaScript to view this browser compatibility table.