请帮帮我。 它在IE中不起作用!
<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
<link rel="stylesheet" href="styles/global.css">
file global.css
body{ background-color:black}
@media screen and (max-width: 650px) {
body{background-color:red;}
}
@media screen and (max-width: 450px) {
body{background-color:green;}
}
但它有效:
<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
<style>
body{ background-color:black}
@media screen and (max-width: 650px) {
body{background-color:red;}
}
@media screen and (max-width: 450px) {
body{background-color:green;}
}
</style>
可能有其他解决方案吗?