Jos*_*eam 18
可能像这样(jsfiddle):
table {
border-collapse: collapse;
width: 100%;
}
tr {
border-bottom: 1px solid #ccc;
}
th {
text-align: left;
}
Run Code Online (Sandbox Code Playgroud)
<table>
<thead>
<tr>
<th>Name</th>
<th>Age</th>
</tr>
</thead>
<tbody>
<tr>
<td>Jose</td>
<td>25</td>
</tr>
<tr>
<td>Alberto</td>
<td>32</td>
</tr>
</tbody>
</table>
Run Code Online (Sandbox Code Playgroud)
水平分隔线的 css 是:
th, td {
border-bottom: 1px solid #ddd;
}
Run Code Online (Sandbox Code Playgroud)
请参阅: https: //www.w3schools.com/css/css_table.asp
| 归档时间: |
|
| 查看次数: |
19614 次 |
| 最近记录: |