又一种表格行自动变色

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>111</title>
</head>

<body>
<table width="55%" border="2" align="center">
  
<tr onmouseover="this.style.backgroundColor='#cc0000'" onmouseout="this.style.backgroundColor=''">
    
<td><div align="center">表格内容</div></td>
    
<td><div align="center">表格内容</div></td>
  
</tr>
  
<tr onmouseover="this.style.backgroundColor='#cc0000'" onmouseout="this.style.backgroundColor=''">
    
<td><div align="center">表格内容</div></td>
    
<td><div align="center">表格内容</div></td>
  
</tr>
  
<tr onmouseover="this.style.backgroundColor='#cc0000'" onmouseout="this.style.backgroundColor=''">
    
<td><div align="center">表格内容</div></td>
    
<td><div align="center">表格内容</div></td>
  
</tr>
</table>



</body>
</html>

posted @ 2006-11-19 21:35  しovのんeТs  阅读(193)  评论(0编辑  收藏  举报