强制弹出窗口显示在页面顶部
当我将鼠标悬停在嵌入主页内的 iframe 中的链接上时,我会触发一个弹出窗口。
目前该弹出窗口正在 iframe 上呈现并被剪切。我希望弹出窗口显示在顶部而不是框架中。
I have a popup that gets fired when I hover over a link in an iframe embedded inside the main page.
Currently that popup is rendering on the iframe and gets clipped. I want the popup to display on the top and not in the frame.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,这不能以可靠且简单的方式完成。
您必须在父框架中显示弹出窗口,因为这是唯一可以悬停在 iframe 上方的弹出窗口。如果弹出窗口绑定到鼠标位置,则交叉计算正确位置并将其传输到父框架所需的工作量巨大并且非常复杂。
As far as I can see, this can't be done in a reliable and simple way.
You would have to display the popup in the parent frame, because that's the only one that can hover above your iframe. If the popup is bound to the mouse position, the amount of effort required to cross-calculate the correct positions and transfer them to the parent frame is huge and awfully complicated.