--- title: circle slug: Web/SVG/Element/circle tags: - SVG - SVG图形 - 'http://svgjs.com' - 元素 - 参考 translation_of: Web/SVG/Element/circle ---
{{SVGRef}}

 <circle> SVG 元素是一个SVG的基本形状,用来创建圆,基于一个圆心和一个半径。

用法

{{svginfo}}

示例

<?xml version="1.0"?>
<svg viewBox="0 0 120 120" version="1.1"
  xmlns="http://www.w3.org/2000/svg">
  <circle cx="60" cy="60" r="50"/>
</svg>

» circle.svg

属性

全局属性

专有属性

DOM 接口

该元素实现了 {{ domxref("SVGCircleElement") }} 接口.

浏览器兼容性

{{Compat("svg.elements.circle")}}

相关内容