-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path全屏布局.html
68 lines (60 loc) · 1.23 KB
/
全屏布局.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
63
64
65
66
67
68
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<style>
html, body {
height: 100%;
overflow: hidden;
}
.box {
display: flex;
flex-flow: column;
width: 100%;
height: 100%;
text-align: center;
vertical-align: middle;
}
.top {
background: #ccc;
height: 100px;
width: 100%;
}
.center {
display: flex;
flex: 1;
}
.left {
background: blanchedalmond;
width: 200px;
}
.right {
background: blueviolet;
flex: 1;
overflow: auto;
}
.right p {
min-height: 2000px;
min-width: 760px;
}
.bottom {
background: brown;
height: 100px;
width: 100%;
}
</style>
</head>
<body>
<div class="box">
<div class="top">top</div>
<div class="center">
<div class="left">left</div>
<div class="right">
<p>line</p>
</div>
</div>
<div class="bottom">bottom</div>
</div>
</body>
</html>