上传文件至 flex布局
This commit is contained in:
17
flex布局/container2.css
Normal file
17
flex布局/container2.css
Normal file
@@ -0,0 +1,17 @@
|
||||
.container2{
|
||||
width: 400px;
|
||||
height: 400px;
|
||||
background-color: aqua;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
/* 均匀分布的布局,第一项与起始点齐平,第二项与终止点齐平 */
|
||||
}
|
||||
.inter{
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
background-color: blue;
|
||||
}
|
||||
.container2 div:nth-of-type(2){
|
||||
/* 伪类用于单个参数指定,该参数表示匹配元素的模式 */
|
||||
align-self: flex-end;
|
||||
}
|
Reference in New Issue
Block a user