min-width时,小的放上面大的在下面,同理如果是用max-width那么就是大的在上面,小的在下面
max-width: >=
min-width: <=
//1366-1440
@media screen and (max-width: 1440px)and(min-width: 1366px) {
.content {
width: 60%;
height: 600px;
margin: 10px auto;
}
min-width时,小的放上面大的在下面,同理如果是用max-width那么就是大的在上面,小的在下面
max-width: >=
min-width: <=
//1366-1440
@media screen and (max-width: 1440px)and(min-width: 1366px) {
.content {
width: 60%;
height: 600px;
margin: 10px auto;
}
本文标题:media适配
本文链接:https://www.haomeiwen.com/subject/rkabwhtx.html
网友评论