<table width = "200" height = "200">
<tr>
<td style = "background:#CCCCCC" onClick = "alert(this.style.background);">
aaaaa
</td>
</tr>
</tabel>
<tr>
<td style = "background:#CCCCCC" onClick = "alert(this.style.background);">
aaaaa
</td>
</tr>
</tabel>
<head>
<style type="text/css">
.tdMouseOver {
background:#666666;
}</style>
</head>
<body>
<table width = "200" height = "200">
<tr>
<td onMouseover = "this.className = 'tdMouseOver';" onClick = "alert(this.style.background);">
aaaaa
</td>
</tr>
</tabel>
</body>麻烦帮一下,好吗?
<head>
<style type="text/css">
.tdMouseOver {
background:#666666;
}</style>
</head>
<body>
<table width = "200" height = "200">
<tr>
<td onMouseover = "this.className = 'tdMouseOver';" onClick = "alert(this.currentStyle.backgroundColor);">
aaaaa
</td>
</tr>
</tabel>
</body>