xxxxxxxxxx
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS border-collapse 属性示例- 基础教程(div.cn)</title>
<style>
table {
border-collapse: collapse;
}
table, th, td {
border: 1px solid black;
}
</style>
</head>
<body>
<table>
<tr>
<th>Name</th>
<th>Email</th>
</tr>
<tr>
<td>Alax</td>
<td>alax@example.com</td>
</tr>
<tr>
<td>Joy</td>
<td>joy@example.com</td>
</tr>
</table>
<p> <strong>注意</strong>:如果未指定<code>!DOCTYPE </code>,则<code> border-collapse </code>属性可能会在IE8和更早版本中产生意外结果。< / p>
</body>
</html>