消息“此内容无法显示在框架中”来自Internet Explorer。
见IE8 Security Part VII: ClickJacking Defenses:
Web developers can send a HTTP response header named X-FRAME-OPTIONS with HTML pages to restrict how the page may be framed. If the X-FRAME-OPTIONS value contains the token DENY, IE8 will prevent the page from rendering if it will be contained within a frame. If the value contains the token SAMEORIGIN, IE will block rendering only if the origin of the top level-browsing-context is different than the origin of the content containing the X-FRAME-OPTIONS directive.
google.com`s电流响应头包含:X-框架选项:SAMEORIGIN
因此,答案是:你不能在一个iframe使用http://www.google.com
。
因此,flex-iframe users guide中的示例已过时(上次编辑2年前)。
您是否已将参数'wmode =“opaque”'添加到HTML模板中的嵌入中,如[用户指南]中所述(https://github.com/flex-users/flex-iframe/wiki/Users -指南)? – splash
是的,我将它添加到html模板中。但它并没有起作用。 –
您使用哪种浏览器? – splash