有很多的话题,但我无法找到解决我的问题,所以我希望大家都能帮助我。我试了很多天,我把respond.js放在毕竟,但它不起作用。
我的代码:
<link rel="stylesheet" type="text/css" media="screen" href="style.css">
<style>
.green{
background: #2DFF78;
}
.blue{
background: #02779E;
}
.col6{
margin-bottom: 20px;
}
</style>
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="respond.min.js"></script>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->在IE8上测试(使用IE9并在IE8上更改浏览器模式)
发布于 2014-03-08 13:34:57
我们最近让respond.js和IE8合作
这是给查询的
<style>
.green{ background: #2DFF78; }
.blue { background: #02779E; }
.col6 { margin-bottom: 20px; }
@media screen and (max-width: 600px) { .green { background: #ff0; }}
@media screen and (max-width: 450px) { .green { background: #f0f; }}
</style>您需要在CSS中使用@media查询才能使其工作。看看他们的例子获取更多信息
发布于 2014-06-01 13:22:25
我自己也有这个问题,结果是脚本的小型化版本在IE8中被破坏了,您应该使用未压缩的版本,并确保它不会在控制台上抛出任何错误。
https://stackoverflow.com/questions/22265492
复制相似问题