iframe not rendering in ie9 mode when containing page is in quirks mode

前端 未结 1 1422
遥遥无期
遥遥无期 2020-12-11 02:51

I have an iframe in a page that runs in quirks mode (I don\'t have control over the containing page), and I need my page to render in a mode that is compatible with modern b

1条回答
  •  悲&欢浪女
    2020-12-11 03:28

    I ended up using an object tag instead of an iframe, it seems to work ok across modern browsers.

    
    

    It turns out you can't modify the URL using javascript in IE9, but that's not a big deal - removing/adding a new object element works just as well for this.

    Update: This tag can also be in an intermediate page that the iframe points to and it all works fine Update 2: This solution does not work in IE10

    0 讨论(0)
提交回复
热议问题