html - 如何在 SVG 上添加链接
问题描述
如果使用了 img 标签(HTML、svg、开发),为什么 SVG 文件中的链接会停止工作?如何添加标签中包含的链接 SVG?谜
在这个拼图中,当我在拼图上移动鼠标时,它会来回结结巴巴。
链接不能正常工作。
解决方案
For example
<a href="https://stackoverflow.com/"><svg width="100" height="100">
<circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" />
</svg></a>
推荐阅读
- mobile - 存储在主页以外的文件夹中的网页无法在移动设备上打开
- react-native - 在 React Native 中滚动 FlatList 时如何关闭键盘?
- javascript - javascript验证带空格的长度
- docker - 将数据从json文件导入ES时,为什么Elasticsearch-dump会抛出Pipeline failed错误
- postgresql - 比较两个表值需要很长时间(大容量)
- javascript - Angular scrollPositionRestoration 仅偶尔在 Chrome 中有效
- mysql - 当我将代码从 sql 重写为 ruby 时执行查询
- jmeter - 在 JMeter 中写入 CSV 文件
- database - Deno 中的 MongoDB 模式索引
- azure - 为什么我在 Azure 容器实例中的 Selenium Grid 需要相同的时间来执行测试,而不管节点的数量是多少?