码迷,mamicode.com
首页 > 其他好文 > 详细

Bootstrap之底层媒体查询

时间:2018-08-06 22:39:18      阅读:204      评论:0      收藏:0      [点我收藏+]

标签:margin   max   wrap   box   back   dia   direct   order   child   

<style>
@media only screen and (min-width:1024px ) {
#box{
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.inner{
width: 100px;
height: 100px;
background: #8a4182;
margin: 10px;

}
.inner:nth-child(5){
order: -1;
}
}
@media only screen and (min-width:640px) and (max-width:1023px) {
#box{
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.inner{
width: 100px;
height: 100px;
background: blue;
margin: 10px;
}
.inner:nth-child(5){
order: -1;
}
}
@media only screen and (min-width:320px) and (max-width:639px) {
#box{
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.inner{
width: 100px;
height: 100px;
background: green;
margin: 10px;
}
.inner:nth-child(5){
order: -1;
}
}

Bootstrap之底层媒体查询

标签:margin   max   wrap   box   back   dia   direct   order   child   

原文地址:https://www.cnblogs.com/iWaitYou/p/9433839.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!