更详细的信息请阅读: Create an adaptable website layout with CSS3 media queries
@media screen and (min-width:1200px){
#container{
width:1100px;
}
header h1#logo a{
width:1100px;
height:150px;
background:url(image.jpg) no-repeat 0 0;
}
}
@media screen and (max-width:767px){
#container{
width:320px;
}
header h1#logo a{
width:320px;
height:44px;
background:url(image-small.jpg) no-repeat 0 0;
}
}
@media screen and (min-width:1200px){
img {
max-width:1000px;
}
}
@media screen and (max-width:767px){
img {
max-width:305px;
}
}