不良成本是什么:这段CSS怎么没效果 ?

来源:百度文库 编辑:神马品牌网 时间:2024/04/30 08:42:35
我给下面的表格定义了样式,怎么什么效果都没有?
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>The main page of the 郭宇权</title>
<style type="text/css">
<!--
a.e:link {
font-size: 10px;
font-weight: normal;
color: #CCCCCC;
background-color: #CCCCCC;
border: 1px dashed #FFFFFF;

}
a.e:visited {
font-size: 14px;
font-weight: bold;
color: #CCCCCC;
background-color: #999999;
border: 1px dashed #FFFFFF;
}
a.e:hover {
color: #FFFF00;
background-color: #000000;
border: 1px solid #FFFF00;
}
-->
</style>

</head>
<body style="background-image:url(0-1.jpg); background-repeat:no-repeat">
<table class="e" width="237" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="237" height="85"> </td>
</tr>
</table>
</body>
</html>

link /wisited / hover等只对链接标识有效

将代码改称这样试试:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>The main page of the 郭宇权</title>
<style type="text/css">
<!--
a:link {
font-size: 10px;
font-weight: normal;
color: #CCCCCC;
background-color: #CCCCCC;
border: 1px dashed #FFFFFF;

}
a:visited {
font-size: 14px;
font-weight: bold;
color: #CCCCCC;
background-color: #999999;
border: 1px dashed #FFFFFF;
}
a:hover {
color: #FFFF00;
background-color: #000000;
border: 1px solid #FFFF00;
}
-->
</style>

</head>
<body style="background-image:url(0-1.jpg);

background-repeat:no-repeat"> <a href=#>
<table width="237" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="237" height="85">fghfhfghfghfghfghgfh</td>

</tr>
</table> </a>
</body>
</html>