Media query not working in IE9

后端 未结 5 1053
悲哀的现实
悲哀的现实 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:22

    From what I can tell, it comes down to IE9 not interpreting "min-device-width" and "max-device-width".

    According to http://msdn.microsoft.com/library/ms530813.aspx it does not support those properties, only "min-width" and "max-width".

    In addition, http://www.w3.org/TR/css3-mediaqueries/#error-handling states that the browser is supposed to ignore properties that it does not recognize. Not so with IE9 it seems.

提交回复
热议问题