上传文件至 flex布局

This commit is contained in:
2024-03-20 20:54:41 +08:00
parent ce61fd6ca6
commit 3091c6108e
5 changed files with 93 additions and 0 deletions

21
flex布局/container3.css Normal file
View 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;
}