本篇文章帮大家学习SVG链接,包含了SVG链接使用方法、操作技巧、实例演示和注意事项,有一定的学习价值,大家可以用来参考。
元素用于创建超链接。 xlink:href属性用于传递与URI(统一资源标识符)互补的IRI(国际化资源标识符)。
声明
以下是元素的语法声明。 我们只显示了一些主要的属性。
xlink:show = "new" | "replace"
xlink:actuate = "onRequest"
xlink:href = ""
target = "_replace" | "_self" | "_parent" | "_top" | "_blank" | "" >
属性
编号
名称
描述
1
xlink:show
用于XLink识别处理器的文档目的。 默认是new。
2
xlink:actuate
用于XLink识别处理器的文档目的。
3
xlink:href
被引用对象的位置。
4
target
当结束资源的时候使用。
示例
文件:testSVG.html -
SVG LinkingSample Link
Click me to load Yiibai DOT COM.
Click in the rectangle to load Yiibai DOT COM
style="fill:rgb(121,0,121);stroke-width:3;stroke:rgb(0,0,0)" />
在Chrome浏览器中打开:textSVG.html 文件。