<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>3月22日第六次作业.CSS表格设置</title>
<style>
table,th,td {
border: 1px solid #333;
}
table {
border-collapse: collapse;
text-align: center;
width: 60%;
margin: 50px auto;
box-shadow: 4px 4px 4px #888;
background-repeat: no-repeat;
background-size: cover;
}
table caption {
font-size: 1.6em;
font-weight: bolder;
margin-bottom: 30px;
}
th,td {
padding: 10px;
}
td img {
border-radius: 50%;
box-shadow: 2px 2px 2px #888;
}
th {
background-color: rgba(155,155,0,0.3);
color: white;
}
.green {
color: darkgreen;
font-weight: bolder;
font-size: 1.2em;
}
</style>
</head>
<body>
<table>
<caption>§ 学生成绩登记册 §</caption>
<tr>
<th>学(籍)号</th>
<th>学生姓名</th>
<th>出勤记录</th>
<th>平时记录</th>
<th>平时考试</th>
<th>综合评定成绩</th>
<th>学分</th>
</tr>
<tr>
<td>1</td>
<td>王重阳</td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>