码迷,mamicode.com
首页 > Web开发 > 详细

CSS弹性盒子3

时间:2016-04-01 00:54:54      阅读:158      评论:0      收藏:0      [点我收藏+]

标签:

@charset "UTF-8";
/* CSS Document */


p{
   width:200px;
   border:5px solid #424089;
   margin:5px;
   padding:5px;
}

div{
    width:100%;
    display:flex;
    
    /*flex-direction:column;
    flex-direction:row-reverse;
    
    flex-wrap:wrap;
    flex-wrap:wrap-reverse;
    
    flex-flow:row wrap;
    
    justify-content:space-around;
    justify-content:flex-start;
    justify-content:center;
    justify-content:space-between;*/

}

  p:nth-child(1){
      flex:1;
      order:3
}
  p:nth-child(2){
      align-self:flex-start;
      flex:3;
      order:2
}
  p:nth-child(3){
      flex:1;
      order:1;

  }

 

CSS弹性盒子3

标签:

原文地址:http://www.cnblogs.com/webday/p/5343366.html

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