-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscroll.html
More file actions
48 lines (48 loc) · 1 KB
/
Copy pathscroll.html
File metadata and controls
48 lines (48 loc) · 1 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
html,body{
height: 100%;
margin: 0;
padding: 0;
}
.main{
width: 100%;
height: 100%;
overflow: auto;
position: relative;
}
.row{
width: 2000px;
height: calc(100% - 200px);
background-color: beige;
overflow: hidden;
}
.fixed-main{
width: 100%;
height: 20px;
position: absolute;
bottom: 0;
overflow: hidden;
}
.fixed{
width: 100%;
height: 200px;
background-color: cadetblue;
position: absolute;
bottom: -10px;
}
</style>
</head>
<body>
<div class="main">
<div class="row">row</div>
<div class="fixed-main">
<div class="fixed">fixed</div>
</div>
</div>
</body>
</html>