iframe可以弹出一个Lightbox风格的框吗? [英] Can an iframe pop up a Lightbox-style box?

查看:88
本文介绍了iframe可以弹出一个Lightbox风格的框吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题不是关于如何在Lightbox中弹出一个iframe;相反,它是关于页面上的iframe,它可以在包含 iframe的页面中启动自己的Lightbox风格框。我认为这是不可能的,因为iframe包含其他URL的内容,并且该URL所启动的任何Lightbox都必须适合iframe。感谢。

解决方案

< iframe> 如果两个框架位于不同的域中,则与其父框架进行交互。


This question isn't about popping up an iframe inside a Lightbox; rather, it's about an iframe on a page that can launch its own Lightbox-style box in the page that contains that iframe. I'm thinking this can't be possible, because the iframe contains the contents of the other URL and whatever Lightbox that URL launches has to fit within the iframe. Thanks.

解决方案

It is not possible for the <iframe> to interact with its parent frame if the two frames are on different domains.

这篇关于iframe可以弹出一个Lightbox风格的框吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆