blob: ce846f06c974e90a52a557fd894f6ad7cc8f3e65 (
plain)
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
|
<html>
<head>
<style>
#outer {
position: absolute;
top: 0px;
left: 0px;
height: 300px;
width: 300px;
z-index: 1;
overflow: auto;
background-color: green;
}
#inner {
transform: translateZ(0);
background-color: blue;
}
#overlap {
width: 500px;
height: 500px;
background-color: yellow;
transform: translateZ(0);
}
</style>
</head>
<body>
<div id="outer">
<div id="inner"></div>
</div>
<div id="overlap"></div>
</body>
</html>
|