Correcting teacher:PHPz
Correction status:qualified
Teacher's comments:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<style>
.box1{
background-color: red;
flex: 1;
/*占比1倍*/
}
.box2{
background-color: yellow;
flex: 3;
/*占比3倍*/
}
.box3{
background-color: green;
flex: 1;
/*占比1倍*/
}
.container{
/*弹性盒模型*/
display: flex;
/*两边对齐中间留有空白*/
/*place-content: space-between;*/
/* 分散对齐 */
/*place-content: space-around;*/
/*平均对齐*/
/*place-content: space-evenly;*/
}
</style>
<body>
<div class="container">
<div class="box1">box1</div>
<div class="box2">box2</div>
<div class="box3">box3</div>
</div>
</body>
</html>