中国优质的IT技术网站
专业IT技术创作平台
IT职业在线教育平台
一、说明 圆形形状。 说明:该组件从API version 7开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。
二、子组件 支持animate、animateMotion、animateTransform。
三、属性 支持Svg组件通用属性和以下属性。 四、案例
<!-- circle.hml --> <div class="container"> <svg fill="white" width="500" height="500"> <circle cx="180" cy="60" r="50" stroke-width="4" fill="red" stroke="blue"></circle> <circle cx="180" cy="180" r="50" stroke-width="10" stroke="red" stroke-dasharray="10 5" stroke-dashoffset="3"></circle> <circle cx="180" cy="300" r="50" fill="#f40" stroke-width="10" stroke="#fff" stroke-dasharray="10 5" stroke-dashoffset="6"></circle> <circle cx="180" cy="420" r="50" fill="#520" stroke-width="8" stroke-dasharray="10 5" stroke="#f40" stroke-dashoffset="9"></circle> </svg> </div>
效果: 完整代码地址为: https://gitee.com/jltfcloudcn/jump_to/tree/master/svg组件_circle/circle
微信扫码分享