blob: d6e64d0d107664532f657d8774df1aeda6e038f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<!DOCTYPE html>
<meta charset="utf-8">
<style>
#scroll-container {
overflow: hidden scroll;
width: 400px;
height: 100px;
}
.anchor {
width: 100px;
height: 100px;
background: orange;
display: inline-block;
}
</style>
<div id="scroll-container">
<div class="anchor">anchor1</div>
<div style="height: 100px"></div>
</div>
|