藍森林首頁 | 返回主頁 | 本站地圖 | 站內搜索 | 聯繫信箱 |
 您目前的位置:首頁 > 自由軟件 > 技術交流 > 應用編程


    

藍森林 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




Copyright © 1999-2000 LSLNET.COM. All rights reserved. 藍森林網站 版權所有。 E-mail : webmaster@lslnet.com