سؤال
ما حاولت هذا
<a xlink:target="http://ponyoverflow.com">
<text class="text" x="20" y="718" text-anchor="start">Mail Order Ponies</text>
</a>
ووالاختلافات مع href
وtype="simple"
.
ويظهر نص الارتباط، ولكن الرابط غير قابل للنقر. حاولت فايرفوكس 3.5.5، الكروم، إنكسكيب وGNOME عارض الصور.
هل هناك أي شيء خطأ في بناء الجملة، وإذا لم يكن هناك أي تطبيق يدعم الروابط في SVG؟
المحلول
وجرب هذا:
<a xlink:href="http://ponyoverflow.com">
<text class="text" x="20" y="718" text-anchor="start">Mail Order Ponies</text>
</a>
... وتأكد لديك xmlns:xlink="http://www.w3.org/1999/xlink"
السمة على عنصر SVG الجذر.
لا تنتمي إلى StackOverflow