网页多种版心适应多屏幕技巧
/*版心*/
@media screen and (max-width:1200px) and (min-width:1024px){
.w{
width:1024px;
margin:0 auto;
position: relative;
}
}
@media screen and (max-width:1024px){
.w{
width:960px;
margin:0 auto;
position: relative;
}
}
@media screen and (min-width:1200px){
.w{
width:1200px;
margin:0 auto;
position: relative;
}
}