Run quirks mode in one frame and standards mode in another?

前端 未结 4 1974
青春惊慌失措
青春惊慌失措 2021-01-11 10:33

I have an old application that uses frames (not iframes) was was written back in the IE6 days so it runs in quirks mode.

Is it possible (Using IE 7 or 8) to have one

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-11 11:09

    See my answer here for MSDN-documented solution for IE9: How to force Iframe to run quirks under a standard parent frame

    In short, it is not possible to trigger quirks mode in a frame (or iframe) if the parent page is rendering in IE9 mode, but it is possible to trigger "quirks mode emulation" embedded in the IE9 rendering engine.

    JSBin demo: http://jsbin.com/ozejuk/1/

    Further reading: http://msdn.microsoft.com/en-us/library/gg558056(v=vs.85).aspx

提交回复
热议问题