flex 未完成
This commit is contained in:
55
csspress/demo2/flex.html
Normal file
55
csspress/demo2/flex.html
Normal file
@@ -0,0 +1,55 @@
|
||||
<!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>
|
||||
Reference in New Issue
Block a user