我有以下代码。我想在 iframe 中加载页面。但它只显示加载到 iframe 中。我只在 IE 11 中遇到这个问题。在所有浏览器中它都工作正常。
<iframe src="https://docs.google.com/viewer?url=http://localhost/test_energy/img/Sample.pdf&embedded=true" width="570" height="300" style="border: none;">
</iframe>
最佳答案
尝试:
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE11"/>
关于php - 页面未加载到 IE11 的 iframe 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21695191/