Media query not working in IE9

后端 未结 5 1052
悲哀的现实
悲哀的现实 2020-11-28 12:36

I\'m having a strange problem that only occurs with IE9. I\'m working on a web page that has a desktop layout, and a mobile layout. Same HTML, different CSS. The problem hap

5条回答
  •  借酒劲吻你
    2020-11-28 13:31

    Just in case anyone is crawling SO for an answer to this, the above two answers aren't solving the core problem which is answered here - CSS media query not working in IE 9

    Basically inline CSS3 media queries DO work in IE9 but you have to disable Compatibilty mode -

    
    

    The above meta tag needs to be placed before any other meta tags otherwise IE9 will default to compatibility mode on and will subsequently not work.

提交回复
热议问题