Correcting teacher:天蓬老师
Correction status:qualified
Teacher's comments:当天的作业,不要分成多次提交, 不方便统计完成情况
<!-- align-content使用 -->
<div class="container">
<div class="item">1</div>
<div class="item">2</div>
<div class="item">3</div>
<div class="item">4</div>
<div class="item">5</div>
<div class="item">6</div>
<div class="item">7</div>
<div class="item">8</div>
</div>
<style>
.container{
width: 300px;
display: flex;
/* 多行容器 放不下就会换行*/
flex-wrap: wrap;
height: 150px;
/* align-content: 设置多行容器中的项目排列; */
/* 1. 容器剩余空间在所有项目“二边”的如何分配 ,将全部项目视为一个整体*/
align-content: stretch;
align-content: flex-start;
align-content: flex-end;
align-content: center;
/* 2. 容器剩余空间在所有项目“之间”的如何分配 ,将项目视为一个个独立的个体*/
align-content: space-between;
align-content: space-around;
align-content: space-evenly;
}
.container > .item{
width: 60px;
}
</style>