blob: 81918c37cd648ac5080003f96aab8898c3cd8c2d (
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
|
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script>
function boom()
{
var newDiv = document.createElementNS("http://www.w3.org/1999/xhtml", "div");
newDiv.style.width = "100px";
newDiv.style.height = "8px";
newDiv.style.background = "lightgreen";
document.getElementById("tr").appendChild(newDiv);
}
</script>
</head>
<body onload="boom()">
<table border="1">
<tr id="tr">
<td></td>
<td style="padding-left: 10%"><select style="padding-left: 20%; bottom: 10%;"><option style="padding: 0 0 10% 20%; width: 25px;"></option></select></td>
</tr>
</table>
</body>
</html>
|