我试过的是这个

<a xlink:target="http://ponyoverflow.com">
  <text class="text" x="20" y="718" text-anchor="start">Mail Order Ponies</text>
</a>

以及 href type =&quot; simple&quot; 的变体。

显示链接文字,但链接无法点击。 我尝试了Firefox 3.5.5,Chromium,Inkscape和GNOME图像查看器。

语法是否有问题,如果没有,是否有任何支持链接的应用程序 SVG?

有帮助吗?

解决方案

试试这个:

<a xlink:href="http://ponyoverflow.com">
  <text class="text" x="20" y="718" text-anchor="start">Mail Order Ponies</text>
</a>

...并确保svg根元素上有 xmlns:xlink =&quot; http://www.w3.org/1999/xlink" 属性。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top