зеркало из https://github.com/mozilla/pjs.git
18 строки
439 B
HTML
18 строки
439 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<script>
|
|
function doTest() {
|
|
var d = document.createElement("div");
|
|
d.textContent = "Test";
|
|
d.style.top = d.style.left = 0;
|
|
d.style.position = "absolute";
|
|
document.getElementById("t").appendChild(d);
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="doTest()">
|
|
<div style="position: relative; display: table-header-group;" id="t"></div>
|
|
</body>
|
|
</html>
|