22 lines
432 B
HTML
22 lines
432 B
HTML
<!DOCTYPE html>
|
|
<html><head>
|
|
<style type="text/css">
|
|
#absolute {
|
|
position: absolute;
|
|
background-color: red;
|
|
font-family: "Meiryo";
|
|
}
|
|
</style>
|
|
<script type="text/javascript">
|
|
function load() {
|
|
document.body.offsetHeight;
|
|
document.getElementById("absolute").innerHTML = "test";
|
|
}
|
|
window.onload = load;
|
|
</script>
|
|
</head>
|
|
<body>
|
|
The text "test" should have a red background.
|
|
<div id="absolute"></div>
|
|
</body></html>
|