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