blob: 82ec493ad8cd958ec07fe82af1516364c8888ca7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<!DOCTYPE html>
<html>
<body>
<div style="position:relative; width:300px; background:grey;">
<div style="position:absolute; left:0; bottom:0px; width:250px; background:lime;">abs.pos.</div>
<div style="float:left; width:200px; height:200px; background:cyan;"></div>
<script>document.body.offsetTop;</script>
<div style="clear:both;"></div>
</div>
<script>document.body.offsetTop;</script>
</body>
</html>
|