上传文件至 flex布局
This commit is contained in:
21
flex布局/container3.css
Normal file
21
flex布局/container3.css
Normal file
@@ -0,0 +1,21 @@
|
||||
.container3{
|
||||
width: 400px;
|
||||
height: 400px;
|
||||
background-color: aqua;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.inter{
|
||||
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-color: blue;
|
||||
}
|
||||
.container3 div:nth-of-type(2){
|
||||
/* 伪类用于单个参数指定,该参数表示匹配元素的模式 */
|
||||
align-self: center;
|
||||
}
|
||||
.container3 div:nth-of-type(3){
|
||||
/* 伪类用于单个参数指定,该参数表示匹配元素的模式 */
|
||||
align-self: flex-end;
|
||||
}
|
Reference in New Issue
Block a user