Firefox div > svg mouseover fires OUTSIDE div
我有一个
在Chrome和Safari上,它可以运行,在FF上,SVG位于不同的位置,并且我可以将鼠标悬停在
鼠标悬停事件在比
Javascript:
1 2 3 4 | $("#was_arrows").mouseover(function() { $('#was_arrows svg#normal').attr("class","hidden"); $('#was_arrows svg#hover').attr("class",""); });` |
HTML:
1 2 3 4 5 6 7 8 9 10 | <svg id="normal"> <path d="M 5 0 l 0 30 l 15 -15 l -15 -15"/> <path d="M 25 0 l 0 30 l 15 -15 l -15 -15"/> <path d="M 45 0 l 0 30 l 15 -15 l -15 -15"/> </svg> <svg id="hover" class="hidden"> <path d="M 5 0 l 0 30 l 15 -15 l -15 -15"/> <path d="M 25 0 l 0 30 l 15 -15 l -15 -15"/> <path d="M 45 0 l 0 30 l 15 -15 l -15 -15"/> </svg> |
CSS:
1 2 3 4 5 6 7 8 | #was_arrows { cursor: pointer; position:absolute; right: 40px; top: 23px; height: 30px; width: 53px; } |
链接:http://streuplan.feibra.at/streuplan/index.php?r = streuplan / go
您的