开发者

Dragging anchors with :active CSS in Firefox/IE breaks CSS anchor behavior

开发者 https://www.devze.com 2023-01-30 01:11 出处:网络
In Firefox and IE, when an anchor with a CSS :active state is dragged and the mouse button is released, the normal go-to-url does not occur nor does the anchor return to its normal :link state. After

In Firefox and IE, when an anchor with a CSS :active state is dragged and the mouse button is released, the normal go-to-url does not occur nor does the anchor return to its normal :link state. After this, :开发者_如何学Gohover state does not trigger on the anchor either. So I'm basically stuck with an anchor that is perpetually :active until the mouse is clicked somewhere else in the window.

This odd behavior does not occur in Chrome. Is there a fix for this? Should I just use divs instead of anchors?


I'm not certain of the specs for CSS, as I haven't read them in any detail whatsoever, but this isn't a new thing for Firefox - it's always been that way. There is, however, an addon that functions sort of like what you're asking for - DragUrLink: https://addons.mozilla.org/en-US/firefox/addon/12721/

0

精彩评论

暂无评论...
验证码 换一张
取 消