Will an iframe render in quirks mode?

前端 未结 3 955
死守一世寂寞
死守一世寂寞 2020-11-27 20:54

I\'m working on setting up a page and am having difficulty with getting it to look well across browsers (actually just IE, as it renders properly for mozilla and webkit). I\

3条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-27 21:34

    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 an 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

提交回复
热议问题