【发布时间】:2017-02-08 06:49:08
【问题描述】:
我有一个带有链接的 svg,例如
<a xlink:href="http://example.com" target="_self"></a>
知道为什么链接作为 iframe 打开而不是像普通的 _self 目标一样打开吗?在我所在的同一窗口中打开链接?
【问题讨论】:
我有一个带有链接的 svg,例如
<a xlink:href="http://example.com" target="_self"></a>
知道为什么链接作为 iframe 打开而不是像普通的 _self 目标一样打开吗?在我所在的同一窗口中打开链接?
【问题讨论】:
找到答案
使用 _parent 就可以了
<a xlink:href="http://example.com" target="_parent"></a>
【讨论】: