此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in English Always switch to English

SVGCircleElement

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨2015年7月⁩.

SVG Circle DOM 接口

SVGCircleElement 接口提供了对<circle>元素的属性的访问,而且还提供了操作该元素的方法。

接口概览

又作用于 SVGElementSVGTestsSVGLangSpaceSVGExternalResourcesRequiredSVGStylableSVGTransformable
方法
属性
规范文档 SVG 1.1 (2nd Edition)

属性

名称 类型 描述
cx SVGAnimatedLength 对应于给定<circle>元素的cx属性
cy SVGAnimatedLength 对应于给定<circle>元素的cy属性
r SVGAnimatedLength 对应于给定<circle>元素的r属性

方法

SVGCircleElement接口没有提供任何专有方法。

规范

Specification
Scalable Vector Graphics (SVG) 2
# InterfaceSVGCircleElement

浏览器兼容性

参见