Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/svg/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
是否可以在svg位置插入图像链接?_Svg_Position_Graphic Design - Fatal编程技术网

是否可以在svg位置插入图像链接?

是否可以在svg位置插入图像链接?,svg,position,graphic-design,Svg,Position,Graphic Design,我试图在svg位置插入一个带有文本的图像链接 这是我的密码 <svg width="100" height="100"> <circle cx="20" cy="20" r="20" fill="green" /> <circle cx="70" cy="70" r="20" fill="purple" /> <text x="20" y="20" font-family="sans-serif" font-size="20px"

我试图在svg位置插入一个带有文本的图像链接

这是我的密码

<svg width="100" height="100">
 <circle cx="20" cy="20" r="20" fill="green" />
       <circle cx="70" cy="70" r="20" fill="purple" />
  <text x="20" y="20" font-family="sans-serif" font-size="20px"     
  fill="red">Hello!</text>
<image      xlink:href="https://s-media-cache-ak0.pinimg.com/736x/76/47/9d/76479dd91dc55c2768ddccfc30a4fbf5--pikachu-halloween-costume-diy-halloween-costumes.jpg"        />
   </svg>
我怎么能这么做

请帮助我,SVG中的图像需要指定宽度和高度。如果不指定宽度和高度,则默认值为0,这意味着图像将不可见

你好
你为什么对我们大喊大叫?抱歉我有一个博客mayus Activate你想把图像变成链接,还是把法师和文字都变成链接?现在还不清楚你想在这里完成什么。