我有一个 iframe:
<iframe src="http://externaldomain.com/something.html">
如果来自externaldomain.com的something.html有css:
html { position: relative; }
在 IE 中,它将把 iframe 渲染为空白。所有其他浏览器都很好。
有人知道解决方案吗?记住同源政策。我无法使用 javascript 更改 iframe 内的任何内容,也无法更改 css,因为 iframe src 是外部的。
Thanks.
使用下面的语法就可以了。
给出 style="position:relative;"添加到您的 iframe 中,它将在 IE 中运行。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)