-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path等高flex.html
56 lines (47 loc) · 946 Bytes
/
等高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
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<style>
* {
margin: 0;
padding: 0;
}
.parent {
border: 1px dashed #222222;
overflow: hidden;
}
.left {
/*height: 100px;*/
background-color: #ccc;
width: 100px;
padding-right: 20px;
background-clip: content-box;
}
.right {
flex: 1;
background-color: #cc9966;
}
/*.parent-flx{margin-left: -20px;}*/
.parent {
display: flex;
width: 100%;
}
</style>
</head>
<body>
<div class="parent">
<div class="left">
<p>left</p>
</div>
<div class="right">
<p>right</p>
<p>right</p>
<p>right</p>
<p>right</p>
<p>right</p>
</div>
</div>
</body>
</html>