带有弹出窗口的 iframe 以父框架为中心
基本上我想做的就是让 iframe 内的模式弹出窗口在整个页面上居中,而不仅仅是 iframe...我该怎么做?
Basically all I want to do is have the modal popup from within the iframe to center on the entire page instead of just the iframe... How can I do this?
基本上我想做的就是让 iframe 内的模式弹出窗口在整个页面上居中,而不仅仅是 iframe...我该怎么做?
Basically all I want to do is have the modal popup from within the iframe to center on the entire page instead of just the iframe... How can I do this?
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
你不能轻易做到这一点。 IFrame 中存在的元素绑定到 IFrame。
我建议将模式作为 Parent 的一部分而不是 IFrame 的一部分
You cannot do this easily. Elements that exist in the IFrame are bound to the IFrame.
I would suggest making the modal a part of the Parent and not a part of the IFrame