|
藍森林 http://www.lslnet.com 2006年8月25日 8:28
請教一個表格的鼠標效果
[ubb]
<table border="1" cellpadding="0" cellspacing="0" width="200" height="100">
<tr>
<td onmouseout="this.style.backgroundColor='white'" onmouseover="this.style.backgroundColor='red'">1</td>
<td onmouseout="this.style.backgroundColor='white'" onmouseover="this.style.backgroundColor='red'">2</td>
</tr>
<tr>
<td onmouseout="this.style.backgroundColor='white'" onmouseover="this.style.backgroundColor='red'">3</td>
<td onmouseout="this.style.backgroundColor='white'" onmouseover="this.style.backgroundColor='red'">4</td>
</tr>
</table>
這是個表格變色的效果,是不是要在以上4個單元格都加上,onmouseover等動作,有沒有簡單的設置呢
/ubb]
[code][/code]
|
建議看看基礎知識
css. htc 配合使用後,只要使用一個類就可以l
http://bbs.blueidea.com/viewthread.php?tid=1208071 |
|