blob: 560d0c116048c309254a3a9118dac2a2e6bfa0b5 (
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
|
<!doctype html>
<html>
<body>
<style>
body
{
transform-style: preserve-3d;
}
.absolute
{
position: absolute;
width: 100px;
height: 100px;
transform: translateX(0%);
background-color: red;
}
.relative
{
position: relative;
background-color: green;
width: 100px;
height: 100px;
}
</style>
<div>
<div class="absolute"></div>
<div class="relative"></div>
</div>
</body>
</html>
|