表格的细线边框
table {border-collapse:collapse;}
collapse是合并的意思,即将边框合并在一起;
代码如下:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
table {
border: 1px solid orange;
border-collapse: collapse;
}
td {
border: 1px solid orange;
}
</style>
</head>
<body>
<table>
<tr>
<td>1-1</td>
<td>1-2</td>
</tr>
<tr>
<td>2-1</td>
<td>2-2</td>
</tr>
</table>
</body>
效果如下: