放一个模仿的代码吧,不知道说什么。
新的标签就是对标题位置的改变
caption
{
caption-side:bottom;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>practice</title>
<style>
caption
{
caption-side:bottom;
}
th
{
background-color:green;
color:white;
}
.type1
{
background-color:gray;
}
.type2
{
background-color:white;
}
</style>
</head>
<body>
<table>
<caption>henghaha</caption>
<tr>
<th>Company</th>
<th>Contact</th>
<th>Country</th>
</tr>
<tr class="type1">
<td>Alfreds</td>
<td>Maria Anders</td>
<td>Germany</td>
</tr>
<tr class="type2">
<td>berglunds snabbop</td>
<td>Chridtina Berglund</td>
<td>Sweden</td>
</tr>
<tr class="type1">
<td>Centro comerical Moctezuma</td>
<td>Franciso Chang</td>
<td>Mexico</td>
</tr>
<tr class="type2">
<td>Ernst Handel</td>
<td>Roland Mendel</td>
<td>Austria</td>
</tr>
<tr class="type1">
<td>Island Trading</td>
<td>Helen Bennett</td>
<td>Helen Bennett</td>
</tr>
<tr class="type2">
<td>Island Trading</td>
<td>Helen Bennett</td>
<td>Helen Bennett</td>
</tr>
<tr class="type1">
<td>Island Trading</td>
<td>Helen Bennett</td>
<td>Helen Bennett</td>
</tr>
<tr class="type2">
<td>Island Trading</td>
<td>Helen Bennett</td>
<td>Helen Bennett</td>
</tr>
<tr class="type1">
<td>Island Trading</td>
<td>Helen Bennett</td>
<td>Helen Bennett</td>
</tr>
<tr class="type2">
<td>Island Trading</td>
<td>Helen Bennett</td>
<td>Helen Bennett</td>
</tr>
<tr class="type1">
<td>Island Trading</td>
<td>Helen Bennett</td>
<td>Helen Bennett</td>
</tr>
</table>
</body>
</html>
新手上路,欢迎斧正。