Javascript jQuery 右键单击上下文菜单帮助!
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3996204/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
jQuery Right-Click Context Menu Help!
提问by user264029
http://pastebin.com/YyDzQ4Bkthis is a plugin for right click context menu, anyone know why it doesn't work in IE?
http://pastebin.com/YyDzQ4Bk这是一个用于右键单击上下文菜单的插件,有人知道为什么它在 IE 中不起作用吗?
Not only that, it's breaking many of my other jQuery things, such as fancy box and some jQuery hover functions.
不仅如此,它还破坏了我的许多其他 jQuery 东西,例如花哨的框和一些 jQuery 悬停功能。
回答by BrunoLM
Do you really need a plugin?
你真的需要插件吗?
You could make your own context menu using contextmenu
event:
您可以使用contextmenu
事件制作自己的上下文菜单:
$("element").bind("contextmenu",function(e) {
e.preventDefault();
// create and show menu
});
Some ways to achieve it
实现它的一些方法