-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path2.html
72 lines (68 loc) · 1.44 KB
/
2.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
69
70
71
72
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1;"/>
<title>Step 2 - Optimizing overflow:scroll on iOS5</title>
<style>
* {margin: 0; padding: 0;}
body {
background-color: lightgrey;
}
.scollpane {
position:absolute;
top:30px;
left:30px;
background-color: white;
width:260px;
height:250px;
border: 1px solid black;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
.scollpane ul {
height:100%;
overflow-y: auto;
}
li {
font-family: sans-serif;
font-size: 12px;
border-bottom: 1px solid #e7e7e7;
padding: 0.6em 0.3em;
}
</style>
</head>
<body>
<div class="scollpane">
<ul>
<li>Element 1</li>
<li>Element 2</li>
<li>Element 3</li>
<li>Element 4</li>
<li>Element 5</li>
<li>Element 6</li>
<li>Element 7</li>
<li>Element 8</li>
<li>Element 9</li>
<li>Element 10</li>
<li>Element 11</li>
<li>Element 12</li>
<li>Element 13</li>
<li>Element 14</li>
<li>Element 15</li>
<li>Element 16</li>
<li>Element 17</li>
<li>Element 18</li>
<li>Element 19</li>
<li>Element 21</li>
<li>Element 22</li>
<li>Element 23</li>
<li>Element 24</li>
<li>Element 25</li>
<li>Element 26</li>
<li>Element 27</li>
<li>Element 28</li>
</ul>
</div>
</body>
</html>