如何获取浏览器右键上下文菜单的位置,高度和宽度?
问题描述:
如何使用javascript / jquery获取任何浏览器的右键上下文菜单的位置,高度和宽度???
How to get position, height and width of right click context menu of any browsers using javascript/jquery???
答
你不能。它不是DOM元素。但您可以覆盖右键单击事件并创建自己的上下文菜单。 (这是jQuery中的插件) - http://medialize.github.io/jQuery-contextMenu/ [ ^ ]
You can't. It's not a DOM element. But you can override the right click event and create your own context menu. (Here's a plugin for you to do that in jQuery)--http://medialize.github.io/jQuery-contextMenu/[^]