JQuery 插件组合问题:Fancybox 和 ContextMenu
我使用了两个流行的插件,大部分都取得了成功:
http://www.trendskitchens .co.nz/jquery/contextmenu/
它们都工作得非常好。但是,我似乎无法在 fancybox 内使用上下文菜单。正常的右键菜单被抑制,所以我相信某处存在 z-index 冲突。在检查和更新样式之后,我仍然无法在 fancybox 内获得上下文菜单。
然而,它们单独工作都很好。有人成功地结合了这些或遇到类似的问题吗?
谢谢!
I'm using two popular plugins with success for the most part:
http://www.trendskitchens.co.nz/jquery/contextmenu/
They both work fantastically. However, I cannot seem to get context menus working inside a fancybox. The normal right click menu is suppressed, so I'm led to believe there is a z-index clash somewhere. After checking and updating styles though I still can't get a context menu inside a fancybox.
They both work great separately however. Anyone combine these successfully or experience similar issues?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您很可能(没有您的代码,我只能猜测)需要在 fancybox onComplete 回调内部调用 contextmenu 插件,
例如:
You will most likely (without your code I can only guess) need to call the contextmenu plugin inside of the fancybox onComplete callback
For example:
调整你的CSS文件可能不会做任何事情,因为ContextMenu直接在它的js中添加'zIndex:500'和zIndex:499'。将其调整为 99999 和 99998 效果很好。
很棒的插件。
Adjusting your css files will do nothing probably as ContextMenu is adding 'zIndex: 500' and zIndex: 499' directly in it's js. Adjusting this to 99999 and 99998 worked perfectly.
Great plugins.