1# circle 2 3 4> **说明:** 5> 该组件从API version 7开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。 6 7圆形形状。 8 9## 权限列表 10 11无 12 13 14## 子组件 15 16支持[animate](js-components-svg-animate.md)、[animateMotion](js-components-svg-animatemotion.md)、[animateTransform](js-components-svg-animatetransform.md)。 17 18 19## 属性 20 21支持Svg组件[通用属性](js-components-svg-common-attributes.md)和以下属性。 22 23| 名称 | 类型 | 默认值 | 必填 | 描述 | 24| -------- | -------- | -------- | -------- | -------- | 25| id | string | - | 否 | 组件的唯一标识。 | 26| cx | <length>\|<percentage> | 0 | 否 | 设置圆心的x轴坐标。支持属性动画。 | 27| cy | <length>\|<percentage> | 0 | 否 | 设置圆心的y轴坐标。支持属性动画。 | 28| r | <length>\|<percentage> | 0 | 否 | 设置圆的半径。支持属性动画。 | 29 30 31## 示例 32 33```html 34<!-- xxx.hml --> 35<div class="container"> 36 <svg fill="white" width="400" height="400"> 37 <circle cx="60" cy="200" r="50" stroke-width="4" fill="red" stroke="blue"></circle> 38 <circle cx="180" cy="200" r="50" stroke-width="10" stroke="red" stroke-dasharray="10 5" stroke-dashoffset="3"></circle> 39 </svg> 40</div> 41``` 42 43 44 45