我试过的是
<a xlink:target="http://ponyoverflow.com">
<text class="text" x="20" y="718" text-anchor="start">Mail Order Ponies</text>
</a>
以及
href
和type="simple"
的变体。出现链接文本,但该链接不可单击。
我尝试了Firefox 3.5.5,Chromium,Inkscape和GNOME Image Viewer。
语法是否有问题,如果没有,那么是否有任何应用程序支持以下链接
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="http://www.w3.org/1999/xlink"
属性。
关于svg - 如何从SVG链接?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1816262/