-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlearningflex.html
More file actions
133 lines (115 loc) · 2.28 KB
/
Copy pathlearningflex.html
File metadata and controls
133 lines (115 loc) · 2.28 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Learning Flex</title>
</head>
<body>
<style>
* {
margin: 0;
padding: 0;
}
body > .wrapper > div {
width: 100px;
height: 100px;
line-height: 100px;
text-align: center;
background: #2d53af;
/*margin-left: 10px;*/
}
body > .wrapper > div:nth-child(1) {
height: 200px;
}
body > .wrapper > div:nth-child(2) {
align-self: flex-start;
}
body > .wrapper > div:nth-child(3) {
align-self: flex-end;
}
.wrapper {
padding: 20px;
/*display: -webkit-flex;*/
display: flex;
flex-flow: row wrap;
/*flex-direction: row;*/
/*flex-wrap: wrap;*/
justify-content: space-around;
align-items: center;
}
.haha {
/*width: 640px;*/
display: flex;
flex-flow: row wrap;
min-height: 100px;
}
.haha > div {
flex: 1 20px;
}
.haha > div:nth-child(1) {
background: #660000;
}
.haha > div:nth-child(2) {
flex: 2 200px; /*基础的是100 剩下的500按照flex比例分给大家*/
background: #a6b779;
}
.haha > div:nth-child(3) {
background: #40a070;
}
.cup {
display: flex;
flex-flow: column wrap;
justify-content: flex-start;
width: 100vh;
height: 100%;
}
.cup header {
order: 1;
flex: 1;
}
.cup section {
order: 2;
flex: 1;
display: flex;
flex-flow: row wrap;
align-items: stretch;
}
.cup section nav {
flex: 1;
order: 1;
}
.cup section article {
flex: 4;
order: 2;
}
.cup section aside {
flex: 2;
order: 3;
}
.cup footer {
order: 3;
flex: 1;
}
</style>
<div class="wrapper">
<div>A</div>
<div>B</div>
<div>C</div>
<div>D</div>
</div>
<div class="haha">
<div>A</div>
<div>B</div>
<div>C</div>
</div>
<div class="cup">
<header>header</header>
<section>
<nav>nav</nav>
<article>article</article>
<aside>aside</aside>
</section>
<footer>footer</footer>
</div>
</body>
</html>