用CSS控制,当鼠标放上去时背景变色

发布时间:2007年01月24日      浏览次数:1532 次
<style>
.over{
      background-color:red;
      color:white;
      cursor:hand
}
.out{
      background-color:;
      color:lime;
}
td {font-family:华文行楷;font-size:12px;}
table {border:8px groove blue;table-layout:fixed;}
</style>
<center>
<table border=0 width=54% >
<tr>
      <td onmouseover="this.className='over'" onmouseout="this.className='out'" align="left">心的彼岸</td>
      <td onmouseover="this.className='over'" onmouseout="this.className='out'" align="center">程序员居住的农村</td>
      <td onmouseover="this.className='over'" onmouseout="this.className='out'" align="right">彼岸的心</td>
</tr>
</table>
免责声明:本站相关技术文章信息部分来自网络,目的主要是传播更多信息,如果您认为本站的某些信息侵犯了您的版权,请与我们联系,我们会即时妥善的处理,谢谢合作!