Table的CSS美化样式
[/size][size=large][/color][color=red]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http:/[size=xx-large][/size]/www.w3.org/1999/xhtml">
<head>
<title>2.html</title>
<meta http-eq[color=blue]uiv="Content-Type" content="text/html; charset=gb2312" />
<style type="text/css">
body {
font: normal 11px auto "Tr
ebuchet MS", Verdana, Arial, Helvetica, sans-serif;
color: #4f6b72;
background: #E6EAE9;
}
table {
width: 700px;
padding: 0;
margin: 0;
}
td {
border-right: 1px solid #C1DAD7;
border-bottom: 1px solid #C1DAD7;
font-size: 11px;
padding: 6px 6px 6px 12px;
color: #4f6b72;
}
tr:hover {
background-color: #B0C4DE;
}
th {
font: bold 11px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
color: #4f6b72;
border-right: 1px solid #C1DAD7;
border-bottom: 1px solid #C1DAD7;
border-top: 1px solid #C1DAD7;
letter-spacing: 2px;
text-transform: uppercase;
text-align: center;
padding: 6px 6px 6px 12px;
background: #CAE8EA no-repeat;
}
a:link {
color:red;
text-decoration: none;
}
a:hover {
color:blue;
text-decoration: none;
}
a:visited {
color:green;
text-decoration: none;
}
a:active {
color:orange;
text-decoration: none;
}
</style>
</head>
<body>
<div align="center">
<table>
<tr>
<th>姓名</th>
<th>学号</th>
<th>密码</th>
<th>操作</th>
</tr>
<tr>
<td>111</td>
<td>111</td>
<td>111</td>
<td><a href="http:www.hao123.com">修改</a> <a href="http://www.baidu.com">删除</a></td>
</tr>
<tr>
<td>222</td>
<td>222</td>
<td>222</td>
<td><a href="http:www.hao123.com">修改</a> <a href="http://www.baidu.com">删除</a></td>
</tr>
<tr>
<td>333</td>
<td>333</td>
<td>333</td>
<td><a href="http:www.hao123.com">修改</a> <a href="http://www.baidu.com">删除</a></td>
</tr>
</table>
</div>
</body>
</html>[/color]