-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflex.html
62 lines (57 loc) · 1.3 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
58
59
60
61
62
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<script type="text/javascript" src='http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js'></script>
<script type="text/javascript" src=' http://apps.bdimg.com/libs/angular.js/1.4.6/angular.min.js'></script>
<link rel="stylesheet" href="http://apps.bdimg.com/libs/bootstrap/3.2.0/css/bootstrap.min.css">
<title>Document</title>
<style type="text/css">
.flex-contain {
display: flex;
width: 502px;
align-items: center;
justify-content: center;
border: 1px solid gray;
}
.item {
padding:10px;
flex-basis: 100px;
}
.item1 {
flex-grow:1;
background: pink;
}
.item2 {
flex-grow:2;
background: skyblue;
}
.one {
padding:10px;
flex-basis: auto;
}
.one1 {
background: pink;
}
.one2 {
background: skyblue;
}
</style>
</head>
<body>
<div class='flex-contain'>
<span class='item item1'>1</span>
<span class='item item2'>2</span>
</div>
<div class='flex-contain'>
<span class='one one1'>1</span>
<span class='one one2'>2</span>
</div>
<script>
</script>
</body>
</html>