content
.box{ display: flex; width: 100px; height: 50px; border: 1px solid black; background:green; }
.box{ display: inline-flex; width: 100px; height: 50px; border: 1px solid black; background:green; }
.container { width: 200px; height: 200px; border: 1px solid black; .item { width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; width: 200px; height: 200px; border: 1px solid black; .item { width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-direction: row; width: 200px; height: 200px; border: 1px solid black; .item { width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-direction: row-reverse; width: 200px; height: 200px; border: 1px solid black; .item { width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-direction: column; width: 200px; height: 200px; border: 1px solid black; .item { width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-direction: column-reverse; width: 200px; height: 200px; border: 1px solid black; .item { width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-direction: row; width: 200px; height: 200px; border: 1px solid black; .item { flex:none; //默認壓縮main-size,先設定不具彈性. width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-direction: row; flex-wrap: nowrap; width: 200px; height: 200px; border: 1px solid black; .item { flex:none; width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-direction: row; flex-wrap:wrap; width: 200px; height: 200px; border: 1px solid black; .item { flex:none; width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-direction: row; flex-wrap:wrap-reverse; width: 200px; height: 200px; border: 1px solid black; .item { flex:none; width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-direction: row; width: 200px; height: 200px; border: 1px solid black; .item { flex:none; width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-direction: row; justify-content:flex-start; width: 200px; height: 200px; border: 1px solid black; .item { width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-direction: row; justify-content:center; width: 200px; height: 200px; border: 1px solid black; .item { width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-direction: row; justify-content:flex-end; width: 200px; height: 200px; border: 1px solid black; .item { width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-direction: row; justify-content:space-between; width: 200px; height: 200px; border: 1px solid black; .item { width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-direction: row; justify-content:space-around; width: 200px; height: 200px; border: 1px solid black; .item { width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-direction: row; justify-content: space-evenly; width: 200px; height: 200px; border: 1px solid black; .item { width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-direction: row; width: 200px; height: 200px; border: 1px solid black; .item { width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-direction: row; align-items: flex-start; width: 200px; height: 200px; border: 1px solid black; .item { width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-direction: row; align-items: center; width: 200px; height: 200px; border: 1px solid black; .item { width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-direction: row; align-items: flex-end; width: 200px; height: 200px; border: 1px solid black; .item { width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-direction: row; align-items: baseline; width: 200px; height: 200px; border: 1px solid black; .item { width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-direction: row; align-items: stretch; width: 200px; height: 200px; border: 1px solid black; .item { width: 50px; // height: 50px; 不設定高度 border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-direction: row; flex-wrap: wrap; width: 200px; height: 200px; border: 1px solid black; .item { flex:none; width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-direction: row; flex-wrap: wrap; align-content:flex-start; width: 200px; height: 200px; border: 1px solid black; .item { flex: none; width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-direction: row; flex-wrap: wrap; align-content:center; width: 200px; height: 200px; border: 1px solid black; .item { flex: none; width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-direction: row; flex-wrap: wrap; align-content:flex-end; width: 200px; height: 200px; border: 1px solid black; .item { flex: none; width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-direction: row; flex-wrap: wrap; align-content:space-between; width: 200px; height: 200px; border: 1px solid black; .item { flex: none; width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-direction: row; flex-wrap: wrap; align-content:stretch; width: 200px; height: 200px; border: 1px solid black; .item { flex: none; width: 50px; // height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; width: 200px; height: 200px; border: 1px solid black; .item { flex:none; width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; width: 200px; height: 200px; border: 1px solid black; .item { flex:none; flex-basis:100px; width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; width: 200px; height: 200px; border: 1px solid black; .item { flex:none; flex-basis:80%; width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; width: 200px; height: 200px; border: 1px solid black; .item { width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; width: 200px; height: 200px; border: 1px solid black; .item { flex-grow:1; width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-direction: row; flex-wrap: wrap; width: 200px; height: 200px; border: 1px solid black; .item { flex-grow:0; width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } .item2 { flex-grow:1; width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } .item3 { flex-grow:2; width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; width: 200px; height: 200px; border: 1px solid black; .item { width: 100px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; width: 200px; height: 200px; border: 1px solid black; .item { flex-shrink:0; width: 100px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; width: 200px; height: 200px; border: 1px solid black; .item { flex-shrink:0; width: 100px; height: 50px; border: 1px solid black; box-sizing: border-box; } .item2 { flex-shrink:1; width: 100px; height: 50px; border: 1px solid black; box-sizing: border-box; } .item3 { flex-shrink:2; width: 100px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; width: 200px; height: 200px; border: 1px solid black; .item { width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; width: 200px; height: 200px; border: 1px solid black; .item { order:2; width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } .item2 { order:0; width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } .item3 { order:1; width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } .item4 { order:0; width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; align-items:center; width: 400px; height: 400px; border: 1px solid black; .item { width: 100px; height: 50px; border: 1px solid black; box-sizing: border-box; } .item2 { align-self: flex-start; width: 100px; height: 50px; border: 1px solid black; box-sizing: border-box; } .item3 { align-self: flex-end; width: 100px; height: 50px; border: 1px solid black; box-sizing: border-box; } .item4 { align-self: baseline; width: 100px; height: 50px; border: 1px solid black; box-sizing: border-box; font-size:25px; line-height: 50px; } .item5 { align-self: baseline; width: 100px; height: 50px; border: 1px solid black; box-sizing: border-box; } .item6 { align-self: stretch; width: 100px; // height: 50px; 拿掉高度 border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-flow: row-reverse wrap; width: 200px; height: 200px; border: 1px solid black; .item { width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-flow: row wrap; width: 200px; height: 200px; border: 1px solid black; .item { flex: 0 0 50%; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-flow: row nowrap; width: 200px; height: 200px; border: 1px solid black; .item { flex:initial; width:50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-flow: row nowrap;v width: 200px; height: 200px; border: 1px solid black; .item { flex:none; width:50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-flow: row nowrap; width: 200px; height: 200px; border: 1px solid black; .item { flex:auto; width:50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { width: 200px; height: 200px; border: 1px solid black; .item { width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-flow: row; width: 200px; height: 200px; border: 1px solid black; .item { width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-flow: row; justify-content: center; width: 200px; height: 200px; border: 1px solid black; .item { width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-flow: row; justify-content: center; align-items: center; width: 200px; height: 200px; border: 1px solid black; .item { width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container { display: flex; flex-flow: row; justify-content: space-around; align-items: center; width: 200px; height: 200px; border: 1px solid black; .item { width: 50px; height: 50px; border: 1px solid black; box-sizing: border-box; } }
.container{ width: 300px; height: 300px; border: 1px solid #160606; .header{ background:greenyellow; } .main{ background:orange; .siderbar{ //background:orangered; } .content{ //background:plum; } } .footer{ background:gray; } }
.container{ display: flex; flex-direction: column; width: 300px; height: 300px; border: 1px solid #160606; .header{ flex: 0 0 50px; background:greenyellow; } .main{ flex: auto; background:orange; .siderbar{ // background:orangered; } .content{ // background:plum; } } .footer{ flex: 0 0 50px; background:gray; } }
.container{ display: flex; flex-direction: column; width: 300px; height: 300px; border: 1px solid #160606; .header{ flex: 0 0 50px; background:greenyellow; } .main{ flex:auto; background:orange; display: flex; flex-flow: row nowrap; .siderbar{ flex: 0 0 70px; background:orangered; } .content{ flex: auto; background:plum; } } .footer{ flex: 0 0 50px; background:gray; } }