吃水不忘挖井人
svg基础教程https://www.bilibili.com/video/BV1Pt411y7V6?p=1
要实现的效果
svg文件的写法:
<?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" width="400px" height="300px">
<g style="cursor:pointer">
<circle cx="200" cy="150" r="40" stroke="#1c82f2" stroke-width="2" fill="#1c82f2" />
<text x="100" y="107" font-size="14px" fill="#fff" text-anchor="middle">科鲁兹</text>
</g>
<g style="cursor:pointer">
<line x1="100" y1="100" x2="200" y2="200" style="stroke:rgb(255,0,0);stroke-width:2"/>
<rect x="140" y="140" rx="4" ry="4" width