IE7,IE8支持css3媒体查询 [英] IE7, IE8 support for css3 media query

查看:731
本文介绍了IE7,IE8支持css3媒体查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试过:

@media screen and (max-width:1024px) {
.sidebar{width:630px;}
}

获取IE7和8的修复程序,工作,其中它适用于IE9和其他浏览器。是否有不同的写作方式。我试图包括css3mediaqueries js,但没有成功。
对于IE7和IE8是否有任何支持?

to get the fix for IE7 and 8 but its not working, where as it works for IE9 and other browsers. Is there a different way of writing this. I have tried to include the css3mediaqueries js as well but no success. Is there any support at all for IE7 and IE8?

推荐答案

将此元标记包含在< head&

Include this meta tag in the <head>.

<meta name="viewport" content="width=device-width, initial-scale=1.0">

Internet Explorer 8或更早版本不支持媒体查询。您可以使用media-queries.js或respond.js在IE中添加媒体查询支持。

Internet Explorer 8 or older doesn't support media query. You can use media-queries.js or respond.js to add media query support in IE.

<!--[if lt IE 9]>
    <script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
<![endif]-->

我认为这两个链接会帮助你。

I think this two links will help you.

  • http://cssmatter.com/blog/ie7-and-ie8-support-for-css3-media-query/
  • http://webdesignerwall.com/tutorials/responsive-design-in-3-steps/comment-page-2

更新

css3-mediaqueries-js在 github 上移动

css3-mediaqueries-js is moved on github

这篇关于IE7,IE8支持css3媒体查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆