我有以下代码。我想将页面加载到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"/>