svg主要标签demo

<?xml version="1.0" standalone="no"?>


<svg width="100%" height="100%" version="1.1"
xmlns="http://www.w3.org/2000/svg">

    <!-- 滤镜-->
    <defs>
        <filter id="Gaussian_Blur">
            <feGaussianBlur in="SourceGraphic" stdDeviation="2" />
        </filter>
    </defs>
    <!--线性渐变-->
    <defs>
        <linearGradient id="orange_red" x1="0%" y1="0%" x2="100%" y2="0%">
            <stop offset="0%" style="stop-color:rgb(255,255,0);
            stop-opacity:1"/>
            <stop offset="100%" style="stop-color:rgb(255,0,0);
            stop-opacity:1"/>
        </linearGradient>
    </defs>
    
    <ellipse cx="200" cy="190" rx="85" ry="55"
    style="fill:url(#orange_red)"/>

    <!--放射渐变-->
    <defs>
        <radialGradient id="grey_blue" cx="50%" cy="50%" r="50%"
        fx="50%" fy="50%">
            <stop offset="0%" style="stop-color:rgb(200,200,200);
            stop-opacity:0"/>
            <stop offset="100%" style="stop-color:rgb(0,0,255);
            stop-opacity:1"/>
        </radialGradient>
    </defs>
    <ellipse cx="130" cy="500" rx="110" ry="70"
    style="fill:url(#grey_blue)"/>


    <circle cx="100" cy="50" r="40" stroke="#aaaaaa"
        stroke-width="2" fill="#00eeee"
        style='filter:url(#Gaussian_Blur)'/>
    
    <rect width="100" height="100"
        x='50'
        y='100'
        rx='20'
        ry='20'
        style="fill-opacity:0.5;fill:rgb(0,255,0);stroke-width:1;stroke:rgba(0,0,0,0.5)"/>
        
    <ellipse cx="120" cy="260" rx="100" ry="45"
        style="fill:rgb(200,100,50);
        stroke:rgba(0,0,0,0.5);stroke-width:2"/>
    
    <line x1="0" y1="0" x2="290" y2="100"
        style="stroke:rgb(99,99,99);stroke-width:1;"/>
    
    <polygon points="220,100 300,210 180,290 170,250 "
        style="fill:#cccccc;stroke:#000000;stroke-width:1"/>
    
    <polyline points="100,100 100,120 120,120 120,140 140,140 140,160"
        style="fill:white;stroke:red;stroke-width:2"/>
    
    <path d="M153 334
        C153 334 151 334 151 334
        C151 339 153 344 156 344
        C164 344 171 339 171 334
        C171 322 164 314 156 314
        C142 314 131 322 131 334
        C131 350 142 364 156 364
        C175 364 191 350 191 334
        C191 311 175 294 156 294
        C131 294 111 311 111 334
        C111 361 131 384 156 384
        C186 384 211 361 211 334
        C211 300 186 274 156 274"
        style="fill:white;stroke:red;stroke-width:2"/>

</svg>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值