强制弹出窗口显示在页面顶部

发布于 2024-08-14 00:36:34 字数 100 浏览 8 评论 0原文

当我将鼠标悬停在嵌入主页内的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

格子衫的從容 2024-08-21 00:36:34

据我所知,这不能以可靠且简单的方式完成。

您必须在父框架中显示弹出窗口,因为这是唯一可以悬停在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文