SVG Click事件在Firefox中不起作用

时间:2016-06-10 15:11:31

标签: html events svg click href

我已经设法能够使用" a"来点击svg中的特定路径。 html标签。它适用于Chrome和Edge,但在Firefox中没有点击事件正在运行。

以下是我在SVG中的表现:

 <a href='the_link' target='_parent'><rect x="205" y="478.4" class="st2 hover" width="112.5" height="36.6"/></a>

&#34; <rect />&#34;是我的svg路径。

我想知道是否有人知道如何让它在firefox中运行?

我不知道是否可以帮助找到解决方案,但这里是我的SVG标题:

<?xml version="1.0" encoding="utf-8"?>

    <!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->

        <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"

             viewBox="0 0 1254 650" style="enable-background:new 0 0 1254 650;" xml:space="preserve">

0 个答案:

没有答案