鼠标移到表格上,表格背景就变颜色,同时文字也变颜色,离开表格就恢复原来的值?这样的CSS怎么搞??

来源:百度知道 编辑:UC知道 时间:2024/06/01 06:07:04
鼠标移到表格上,表格背景就变颜色,同时文字也变颜色,

离开表格就恢复原来的值?

这样的CSS怎么搞??

谢谢

CSS文件:
#redtable
{
color:#FF0000;
background-color: #00FFFF;
font-size: 20px;
font-weight: bold;
text-decoration: none;
text-align: center;
height: 30px;
width: 300px;
vertical-align: middle;
}
#redtable a:link{
color: #FF0000;
}
#redtable a:hover
{

color:#FFFFFF;
background-color: #000000;
font-size: 24px;
font-weight: normal;
text-decoration: underline overline
}

网页文件:
<head>
<script type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[