我目前只是处理一项简单的任务。我想要做的就是创建一个沙盒,无缝的iframe。它在Chrome和Firefox中运行良好,但在IE(11)中似乎是空的:
<iframe sandbox="allow-same-origin" seamless srcdoc="<p>Yay!</p>"></iframe>
我读过,IE支持属性security
,但结果相同。
所以,这是一个小提琴:http://jsfiddle.net/SoftCreatR/o30mf2cq/
任何想法,我如何让它在IE10 +中运行?
编辑:
似乎,我找到了一个有效的解决方案:https://stackoverflow.com/a/21588091/3334752