已经载入了css3-mediaqueries.js,但是ie8依旧无法自适应

2013-12-11 15:45:28 +08:00
 shpasspass
<link href="media-queries.css" rel="stylesheet" type="text/css">
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!--[if lt IE 9]>
<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
<![endif]-->
<div id="box">
123
</div>

其中media-queries.css代码是
@media screen and (max-width: 521px) {
#box {
display:none;
}
}

现在chrome等可以自适应。但是ie8下依旧无法自适应。
是根据 http://www.chinaz.com/manage/2011/1122/221855_2.shtml 教程做的。
求教是哪里出错了呢?
4242 次点击
所在节点    问与答
4 条回复
shpasspass
2013-12-11 17:26:23 +08:00
求帮助啊。。。。。
learnshare
2013-12-11 17:30:09 +08:00
googlecode.com 的文件无法载入吧
fen
2013-12-11 17:35:25 +08:00
googlecode 被 xx 了吧
shpasspass
2013-12-11 18:37:45 +08:00
@learnshare
@fen
没有被xx
后来我也把这2个js下载到本地载入,但在ie8下还是无效。。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/92719

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX