CSS媒体查询不工作在IE 9 [英] CSS media query not working in IE 9
本文介绍了CSS媒体查询不工作在IE 9的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的设计中包括一些媒体查询,以根据浏览器的宽度更改页面的某些元素的宽度。查询如下所示:
I have included some media queries in my design to change the width of some elements of the page based on the browser's width. The queries look like this:
@media screen and (min-width:1024px)
@media screen and (max-width:1024px)
Chrome,Safari和Firefox非常出色,我知道在IE 9之前的所有版本不支持此功能,但他们不工作在IE 9。
Chrome, Safari and Firefox work great, only IE is a problem. I know that all versions prior to IE 9 don't support this feature, but they don't work in IE 9 at all. What might be the problem?
推荐答案
是否启用了兼容性模式?
Do you have compatibility mode turned on?
这篇关于CSS媒体查询不工作在IE 9的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文