-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path10.html
More file actions
58 lines (57 loc) · 897 Bytes
/
10.html
File metadata and controls
58 lines (57 loc) · 897 Bytes
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>task10 Flexbox 布局练习</title>
<style type="text/css">
*{
margin:0;
padding:0;
}
.wrapper{
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap:wrap;
}
[class*="box"]{
width:110px;
border:1px solid red;
margin:20px 0;
padding:20px;
}
.box1{
height:80px;
}
.box2{
height: 60px;
}
.box3{
height:2px;
padding:18px;
}
.box4{
height:160px;
border:1px solid #0f0;
}
@media only screen and (max-width:640px) {
.box1,
.box2,
.box3{
order:2;
}
.box4{
order:1;
}
}
</style>
</head>
<body>
<div class="wrapper">
<div class="box1">1</div>
<div class="box2">2</div>
<div class="box3">3</div>
<div class="box4">4</div>
</div>
</body>
</html>