Force IE9 into Quirks mode?

前端 未结 3 917
自闭症患者
自闭症患者 2020-12-18 19:06

I have a page with an iframe, and the iframe contains code that needs to run in quirks mode (it\'s Microsoft\'s Outlook Web Access, so it\'s not our code that we could fix a

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-18 19:44

    You should be able to have differing compat modes between the IFrame and the host - see: http://blogs.msdn.com/b/cjacks/archive/2010/12/01/does-a-standards-web-page-inside-of-an-iframe-in-a-quirks-web-page-render-in-standards-or-quirks.aspx

    You can specify the compat mode you want explicity, even more than you can with the button, using the X-UA-Compatible tag: http://msdn.microsoft.com/en-us/library/cc288325(VS.85).aspx

    HTH.

提交回复
热议问题