等分:
css3的一个flax属性,父级元素用display:flex;布局,子集元素用flex:1;均分父级元素。
.nav_class input{
flex: 1;
}
不等分:
.nav_class input:nth-of-type(1){ flex: 1; } .nav_class input:nth-of-type(2){ flex: 2; } .nav_class input:nth-of-type(3){ flex: 1; }
css3的一个flax属性,父级元素用display:flex;布局,子集元素用flex:1;均分父级元素。
.nav_class input{
flex: 1;
}
.nav_class input:nth-of-type(1){ flex: 1; } .nav_class input:nth-of-type(2){ flex: 2; } .nav_class input:nth-of-type(3){ flex: 1; }
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。