从左往右 从上到下依次排序 flex css |
您所在的位置:网站首页 › 推特画师ringadindons › 从左往右 从上到下依次排序 flex css |
![]() ![]() flex-direction.wxss .container-row{ display: flex; flex-direction: row; } .container-row-reverse{ display: flex; flex-direction: row-reverse; } .container-column{ display: flex; flex-direction: column; } .container-column-reverse{ display: flex; flex-direction: column-reverse; } .size{ width: 200rpx; height: 150rpx; } .a { background: red; } .b { background: yellow; } .c { background: blue; } .d { background: green; } .e { background: gold; }![]() flex-wrap.wxss .container-nowrap{ display: flex; flex-wrap: nowrap; } .container-wrap{ display: flex; flex-wrap: wrap; } .container-wrap-reverse{ display: flex; flex-wrap: wrap-reverse; } .size{ width: 200rpx; height: 150rpx; } .a { background: red; } .b { background: yellow; } .c { background: blue; } .d { background: green; } .e { background: gold; }![]() justify-content.wxss .container-flex-start{ display: flex; justify-content: flex-start; } .container-flex-end{ display: flex; justify-content: flex-end; } .container-center{ display: flex; justify-content: flex-center; } .container-space-around{ display: flex; justify-content: space-around; } .container-space-between{ display: flex; justify-content: space-between; } .size{ width: 50rpx; height: 150rpx; } .a { background: red; } .b { background: yellow; } .c { background: blue; } .d { background: green; } .e { background: gold; }![]() order-flex.wxss .container{ display: flex; justify-content: flex-start; } .size{ height: 150rpx; } .a { background: red; order:5; flex:4; } .b { background: yellow; order:1; flex:1; } .c { background: blue; order:3; flex:2; } .d { background: green; order:32; flex:3; } .e { background: gold; order:4; flex:2; }![]() PS:flex布局基本说完了,基本也给各种场景下的属性含义直观的方式进行了演示,但是老铁虽然我搞完了,但是你们如果想学小程序还是勤加练习的,好脑子不如烂笔头对吧! |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |