align-content 分布方式
属性定义了多根轴线的对齐方式
1.0 align-content: space-between 多轴的平均分布
多轴的平均分布
align-content: space-between;
article {
display: flex;
border: solid 5px silver;
border-color: #8A2BE2;
width: 200px;
height: 580px;
background: red; /* */
flex-wrap: wrap;
flex-direction: row;
align-content: space-between;
}

2.0 多轴的平均分布周围有距离
多轴的平均分布
align-content: space-around;
article {
display: flex;
border: solid 5px silver;
border-color: #8A2BE2;
width: 200px;
height: 580px;
background: red; /* */
flex-wrap: wrap;
flex-direction: row;
align-content: space-around;
}

网友评论