Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
a:active当右键单击链接并在新选项卡中打开以设置链接的颜色以显示它已被单击时,使用 Chrome/FF 中的链接有效。然而,在 IE 中,这并不相同。有任何想法吗?
a:active
jsFiddle 演示
$(document).on("mousedown", "a", function (e) { if (e.button == 2) { $(this).css("color", "red"); return false; } return true; });