码迷,mamicode.com
首页 > 其他好文 > 详细

SVG 圆形 - <circle>

时间:2019-11-17 10:53:18      阅读:95      评论:0      收藏:0      [点我收藏+]

标签:strong   xmlns   amp   http   www   fill   stroke   black   半径   

<circle> 标签可用来创建一个圆:

下面是SVG代码:

实例

<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
  <circle cx="100" cy="50" r="40" stroke="black"
  stroke-width="2" fill="red"/>
</svg>


 

代码解析:

    • cx和cy属性定义圆点的x和y坐标。如果省略cx和cy,圆的中心会被设置为(0, 0)
    • r属性定义圆的半径

SVG 圆形 - <circle>

标签:strong   xmlns   amp   http   www   fill   stroke   black   半径   

原文地址:https://www.cnblogs.com/sea520/p/11875333.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!