17 lines
378 B
HTML
17 lines
378 B
HTML
<!-- The blue and green text boxes should not overlap -->
|
|
<html>
|
|
<body style="font: 1em/1 Ahem, sans-serif;">
|
|
<ruby id="test" style="color: blue">
|
|
ABCD
|
|
</ruby>
|
|
<div style="font-size: 800%; color: green">
|
|
EFGH
|
|
</div>
|
|
<script>
|
|
document.body.offsetTop;
|
|
var test = document.getElementById("test");
|
|
test.style.fontSize = "800%";
|
|
</script>
|
|
</body>
|
|
</html>
|