webveuje/csspress/demo2/flex.html

55 lines
1.5 KiB
HTML
Raw Normal View History

2021-01-20 18:33:56 +08:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
*{
margin:0;
padding: 0;
}
.box{
height: 500px;
background:gold ;
display: flex;
/* flex-direction: column; */
/* align-items: flex-start; */
align-items: baseline;
/* align-items: center; */
/* align-items: flex-end; */
/* flex-direction: row; */
/* justify-content:center; */
/* justify-content:space-around; */
/* justify-content: space-between; */
/* flex-wrap: wrap; */
}
.left{
width: 120px;
height: 120px;
background: pink;
}
.right{
width: 120px;
height: 120px;
background: gray;
}
</style>
</head>
<body>
<div class="box">
<div class="left">萤草</div>
<!-- <div class="left"></div>
<div class="left"></div> -->
<div class="right">青行灯</div>
<div class="right"></div>
<div class="right"></div>
<div class="right"></div>
<div class="right"></div>
<div class="right"></div>
<div class="right"></div>
<div class="right"></div>
<div class="right"></div>
</div>
</body>
</html>