-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1.html
More file actions
63 lines (57 loc) · 1.7 KB
/
1.html
File metadata and controls
63 lines (57 loc) · 1.7 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=, initial-scale=1.0">
<title>Document</title>
<style>
*{
margin: 0;
padding: 0;
list-style:none;
}
.wrap{
width: 600px;
height: 600px;
margin:auto;
background-color: #ccc;
display: flex;
flex-wrap: wrap;
flex-direction: row;
justify-content: center; */
/* justify-content: flex-start; */
/* justify-content: flex-end; */
flex-direction: row; /*分布*/
/* justify-content: space-between; */
/* justify-content:space-between 分配到每一個子物件之間 */
/* justify-content:space-around 分布於每個物件左右 四個物件就有8個 */
/* justify-content:space-evenly 分配到每一個距離等距 */
}
.col{
width: 180px;
height: 150px;
font-size: 50px;
margin: 10px;;
}
.col1{
background-color: #faa;
/* width: 200px; */
}
.col2{background-color: #afa;}
.col3{background-color: #aaf;}
.col4{background-color: #666;}
.col5{background-color: #faf;}
</style>
</head>
<body>
<div class="wrap">
<div class="col col1">1</div>
<div class="col col2">2</div>
<div class="col col3">3</div>
<div class="col col4">4</div>
<div class="col col5">5</div>
</div>
</body>
</html>
1、一個div flex