-
Notifications
You must be signed in to change notification settings - Fork 48
/
index.html
46 lines (46 loc) · 982 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Flex</title>
<style>
html,body{
height: 100%;
}
.father{
display: flex;
justify-content: space-between;
align-items: flex-start;
flex-direction: row;
height: 100%;
flex-wrap:wrap;
}
.box{
background-color: red;
width: 200px;
height: 200px;
border:1px solid black;
display: flex;
justify-content: center;
align-items: center;
color:white;
}
</style>
</head>
<body>
<div class="father">
<div class="box">1</div>
<div class="box">2</div>
<div class="box">3</div>
<div class="box">4</div>
<div class="box">5</div>
<div class="box">6</div>
<div class="box">7</div>
<div class="box">8</div>
<div class="box">9</div>
<div class="box">10</div>
</div>
</body>
</html>