如何防止 JQueryUI 上下文菜单出现在加载到 IE9 中 IFrame 的 PDF 下方
这一直让我陷入困境。我们使用 JQueryUI 网格和其中的可展开和折叠的子网格。主网格行具有单击该行时会下拉的上下文菜单。在这个特定的网格中,展开显示了与合同相关的 PDF。一切正常,直到您尝试调用上下文菜单,在这种情况下,它会在 PDF 查看器后面弹出。它仍然可以通过观看者左侧的边缘点击,但我无法让它显示在观看者面前。我尝试调整 z-index,也尝试从 dom 就像另一篇堆栈溢出文章。 但读者根本不会出现,很可能隐藏在其他元素后面我假设。
有人有什么想法可以破解这个东西吗?
This has been driving me up the wall. We are using a JQueryUI grid and a sub grid within it that expands and collapses. The main grid rows have context menus that drop down when the row is clicked. In this particular grid the expansion shows the PDF associated with a contract. Everything works fine until you try to invoke the context menu in which case it pops behind the PDF viewer. It's still clickable via an edge just off to the left of the viewer but I cannot get it to show up in front of the viewer. I've tried adjusting the z-index and I've also tried detaching the Iframe, as well as a Div wrapped around the Iframe, from the dom a la this other stack overflow article. but then the reader doesn't show up at all, most likely hidden behind the other elements i'm assuming.
Anyone have any ideas to hack this thing to work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
PDF 正在由插件呈现。我怀疑屏幕的一部分是由 Acrobat 插件“拥有”的,直到您关闭该 PDF。
它甚至不是一个 z 顺序的东西(如果我是对的)。 HTML 可能根本无法在该矩形内绘制。
The PDF is being rendered by a plug-in. I suspect that portion of the screen is "owned" by the Acrobat plug-in until you close that PDF.
It's not really even a z-order thing (if I'm right). HTML may simply not be drawn within that rectangle.