-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflex.html
57 lines (50 loc) · 1.16 KB
/
flex.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
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.dad {
width: 500px;
height: 200px;
background-color: #000000;
display: flex;
justify-content: center;
align-items: center
}
.son {
width: 100px;
height: 100px;
background-color: #ff0000;
}
.son-1 {
flex: 1 1 10%;
align-self: flex-start;
height: 100px;
background-color: #ff0000;
}
.son-2 {
flex: 2;
height: 100px;
background-color: #00ff00;
}
.son-3 {
flex: 1;
height: 100px;
background-color: #0000ff;
}
</style>
</head>
<body>
<!--<div class="dad">
<div class="son">
</div>
</div>-->
<div class="dad">
<div class="son-1"></div>
<div class="son-2"></div>
<div class="son-3"></div>
</div>
</body>
</html>