我正在创建一个网站,将我的HTML嵌入到我无法控制的页面中。我希望页面以IE9标准模式呈现。为了做到这一点,我让我的第一页使用embed标签嵌入第二页,以使第二帧处于标准模式。这里讨论了这个技巧:
http://stackoverflow.com/questions/2332125/can-an-iframe-content-be-rendered-in-standards-mode-when-the-parent-is-rendered
不幸的是,根据Internet Explorer的版本,这将导致额外的HEAD请求或额外的GET请求。这里讨论:
https://superuser.com/questions/560647/ie10-unexpectedly-sends-a-head-request-for-pdf-what-has-changed
我想避免这些额外的请求。有人知道这样做的方法吗?
谢谢。
html javascript iframe internet-explorer object-tag
html ×1
iframe ×1
internet-explorer ×1
javascript ×1
object-tag ×1