jQuery右键单击上下文菜单帮助! [英] jQuery Right-Click Context Menu Help!

查看:79
本文介绍了jQuery右键单击上下文菜单帮助!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

http://pastebin.com/YyDzQ4Bk 这是一个右键单击上下文菜单的插件,任何人都知道为什么它在IE中不起作用?

http://pastebin.com/YyDzQ4Bk this is a plugin for right click context menu, anyone know why it doesn't work in IE?

不仅如此,它打破了我的许多其他jQuery事物,例如花哨的盒子和一些jQuery悬停函数。

Not only that, it's breaking many of my other jQuery things, such as fancy box and some jQuery hover functions.

推荐答案

你真的需要一个插件吗?

Do you really need a plugin?

你可以制作自己的上下文菜单使用 contextmenu 事件:

You could make your own context menu using contextmenu event:

$("element").bind("contextmenu",function(e) {
    e.preventDefault();

    // create and show menu
});

实现它的一些方法

  • jQuery Context Menu script
  • Create a jQuery Context Menu for Treeview
  • Right or Left Click Context Menu Using jQuery Demo

这篇关于jQuery右键单击上下文菜单帮助!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆