页面未在IE11中的iframe内加载

Aye*_*sha 6 html php jquery

我有以下代码.我想在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>
Run Code Online (Sandbox Code Playgroud)

hiz*_*l25 9

尝试:

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE11"/> 
Run Code Online (Sandbox Code Playgroud)

  • 这是做什么的? (10认同)