Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5ccc94e1ff | ||
|
|
3091c6108e |
No files matched your search
@@ -0,0 +1,20 @@
|
||||
.container1{
|
||||
width: 400px;
|
||||
height: 400px;
|
||||
background-color: aqua;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
/*
|
||||
等分每个内部盒子的间距
|
||||
*/
|
||||
flex-wrap:wrap;
|
||||
/* 实现多行显示 */
|
||||
align-content: space-around;
|
||||
/* 均匀分布项目 */
|
||||
|
||||
}
|
||||
.inter{
|
||||
width:120px;
|
||||
height: 120px;
|
||||
background-color: blue;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
.num1{
|
||||
width:400px;
|
||||
height: 400px;
|
||||
background-color: aqua;
|
||||
display:flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.inter{
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
background-color: red;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
.container4{
|
||||
width: 400px;
|
||||
height: 400px;
|
||||
background-color: aqua;
|
||||
display:flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.inter{
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
background-color: blue;
|
||||
}
|
||||
.first{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.second{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
.container4{
|
||||
width: 400px;
|
||||
height: 400px;
|
||||
background-color: aqua;
|
||||
display:flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.inter{
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
background-color: blue;
|
||||
}
|
||||
.cen{
|
||||
width:120px;
|
||||
height: 120px;
|
||||
align-self: center;
|
||||
background-color: blue;
|
||||
}
|
||||
.first{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.second{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
.container6{
|
||||
width: 300px;
|
||||
height: 300px;
|
||||
display: flex;
|
||||
background-color: aqua;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.inter{
|
||||
height: 80px;
|
||||
width: 80px;
|
||||
background-color: blue;
|
||||
|
||||
}
|
||||
.first,.second,.three{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user