SVG如何制作图形-创新互联

这篇文章将为大家详细讲解有关SVG如何制作图形,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。

创新互联专注于企业营销型网站建设、网站重做改版、汾阳网站定制设计、自适应品牌网站建设、HTML5建站成都做商城网站、集团公司官网建设、成都外贸网站建设、高端网站制作、响应式网页设计等建站业务,价格优惠性价比高,为汾阳等各大城市提供网站开发制作服务。圆形 circle
<svg width="200" height="200" >
    <circle 
        cx="100" 
        cy="100" 
        r="80" 
        stroke="green" 
        stroke-width="4" 
        fill="none"/>
</svg>
矩形 rect
<svg>
    <rect 
        x="10" 
        y="10" 
        rx="5" 
        ry="5" 
        width="150" 
        height="100" 
        stroke="red" 
        fill="none">
    </rect>
</svg>
椭圆 ellipse
<svg>
    <ellipse 
        cx="400" 
        cy="60" 
        rx="70" 
        ry="50" 
        stroke="red" 
        fill="none">
    </ellipse>
</svg>
线 line
<svg>
    <line 
        x1="10" 
        y1="120" 
        x2="160" 
        y2="220" 
        stroke="red">
    </line>
</svg>
折线 polyline
<svg>
    <line 
        x1="10" 
        y1="120" 
        x2="160" 
        y2="220" 
        stroke="red">
    </line>
</svg>
多边形 polygon
<svg>
    <polygon 
        points="250 120 
                300 220
                200 220"
        stroke="red"
        stroke-width="5"
        fill="yellow"
        transform="translate(150 0)">
    </polygon>
</svg>
路径 path可用于路径数据的命令
M = moveto
L = lineto
H = horizontal lineto
V = vertical lineto
C = curveto
S = smooth curveto
Q = quadratic Belzier curve
T = smooth quadratic Belzier curveto
A = elliptical Arc
Z = closepath

<svg>
    <path 
    d="M250 150 L150 350 L350 350 Z" />
</svg>

关于“SVG如何制作图形”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。

新闻名称:SVG如何制作图形-创新互联
URL地址:https://www.cdcxhl.com/article22/ccsicc.html

成都网站建设公司_创新互联,为您提供网站设计品牌网站设计自适应网站标签优化网站收录外贸网站建设

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联

商城网站建设