0
点赞
收藏
分享

微信扫一扫

鼠标经过表格时高亮当前条颜色,表格美化(系列一)


效果图:鼠标经过表格的某一行时,那行就会被高量显示

 

代码:

 

<table width="100%" border="1" cellpadding="3" cellspacing="0" bordercolor="#efefef" bgcolor="#efefef">
 <tr>
  <td onMouseOut="this.bgColor='#efefef';this.borderColor='#efefef'"; onMouseOver="this.bgColor='#cccccc'; this.borderColor='#000033'"><div align="left">鼠标经过效果</div></td>
 </tr>
 <tr>
  <td onMouseOut="this.bgColor='#efefef';this.borderColor='#efefef'"; onMouseOver="this.bgColor='#cccccc'; this.borderColor='#000033'">鼠标经过效果</td>
 </tr>
 <tr>
  <td onMouseOut="this.bgColor='#efefef';this.borderColor='#efefef'"; onMouseOver="this.bgColor='#cccccc'; this.borderColor='#000033'">鼠标经过效果</td>
 </tr>
 <tr>
  <td onMouseOut="this.bgColor='#efefef';this.borderColor='#efefef'"; onMouseOver="this.bgColor='#cccccc'; this.borderColor='#000033'">鼠标经过效果</td>
 </tr>
 <tr>
  <td onMouseOut="this.bgColor='#efefef';this.borderColor='#efefef'"; onMouseOver="this.bgColor='#cccccc'; this.borderColor='#000033'">鼠标经过效果</td>
 </tr>
</table>

 

黑色头发  http://heisetoufa.iteye.com

举报

相关推荐

0 条评论