SVG Simple EXAMPLE

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">

<svg xmlns="http://www.w3.org/2000/svg" version="1.1"
  xmlns:xlink="http://www.w3.org/1999/xlink">
  <rect width="100" height="300" x="150" rx="20" y="50"/>
  <circle cx="200" cy="100" r="40" stroke="black" stroke-width="3" fill="red" />
  <circle cx="200" cy="200" r="40" stroke="black" stroke-width="3" fill="yellow" />
  <circle cx="200" cy="300" r="40" stroke="black" stroke-width="3" fill="green" />

  <line x1="100" y1="400" x2="100" y2="600" stroke="black" stroke-width="2" />
  <line x1="100" y1="600" x2="400" y2="600" stroke="black" stroke-width="2" />
  <text x="90" y="610">0</text>
  <text x="90" y="390">y</text>
  <text x="410" y="610">x</text>

  <polyline points="110,420 120,450 130,460 140,420 150,460 160,490 170,410" fill="none" stroke="black"/>
  <line x1="110" y1="420" x2="110" y2="600" stroke-width="2" stroke="green" stroke-dasharray="5,5"/>
  <line x1="170" y1="410" x2="170" y2="600" stroke-width="2" stroke="green" stroke-dasharray="5,5"/>
  <path d="M120 500 L130 490 L140 480 L150 490 L160 480 L170 450 L180 470" fill="none" stroke="red" />
  <line x1="120" y1="500" x2="120" y2="600" stroke-width="2" stroke="blue" stroke-dasharray="1"/>
  <line x1="180" y1="470" x2="180" y2="600" stroke-width="2" stroke="blue" stroke-dasharray="1"/>

  <defs>
    <path id="path1" d="M0 10 L50 20 L100 10 L150 20" />
  </defs>
  <a xlink:href="http://www.google.de" target="_blank">
    <text fill="red">
      <textPath xlink:href="#path1">visit google.de</textPath>
    </text>
  </a>
</svg> 



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值