blob: 1297e3b485a4699e352905edde0918d2f05cdfba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<html>
<head>
<style>
#th {
width: 100px;
height: 100px;
transition-duration: 1s;
}
</style>
<script>
function start () {
var div = document.getElementById('th');
div.style.backgroundColor = 'green';
}
</script>
</head>
<body onload="start()">
<table>
<tr style="background-color: blue;"><th id="th"></th></tr>
</table>
</body>
</html>
|