本帖最后由 weiter 于 2020-4-16 13:51 编辑
搞定了,你注释有问题<!DOCTYPE html>
<html>
<head>
<title>table</title>
<style>
/*table,
th,
td {
border: 1px solid black;
}
此处为简洁写法*/
table {
border: 1px solid black;
border-collapse: collapse;
/*合并线条*/
}
th {
border: 1px solid red;
}
td {
border: 1px solid blue;
}
</style>
</head>
<body>
<table>
<tr>
<th>First</th>
<th>Second</th>
<th>Third</th>
</tr>
<tr>
<td>Thepale</td>
<td>16</td>
<td>23391595</td>
</tr>
<tr>
<td>TheCBGCBGCBG</td>
<td>14</td>
<td>2312209053</td>
</tr>
</table>
</body>
</html>
|