如何链接svg文件的特定部分?

时间:2017-04-03 20:12:53

标签: html xml svg

我在adobe illustrator中创建了svg文件。它的建筑地图显示房间。现在我想要,如果用户点击说137房间号码他/她去google.com。(不同的房间号码带到不同的链接) enter image description here

地图图片看起来像这样! Here is source code of svg

1 个答案:

答案 0 :(得分:0)

请参阅https://www.w3.org/TR/SVG11/linking.html#Links

<a xlink:href="http://example.com/room/137">
    <text transform="matrix(1 0 0 1 233.75 40.875)" class="st7 st8 st9">137</text>
</a>
相关问题