<html>
<head>
<style>
table{border-collapse:collapse;border-spacing:0;border-left:1px solid #888;border-top:1px solid #888;background:#efefef;}
th,td{border-right:1px solid #888;border-bottom:1px solid #888;padding:5px 15px;}
th{font-weight:bold;background:#ccc;}
table.gui-table {border-collapse:collapse;border-spacing:0;border-left:1px solid #888;border-top:1px solid #888;background:#efefef; margin: 0 auto;}
table.gui-table th,.gui-table td{border-right:1px solid #888;border-bottom:1px solid #888;padding:5px 15px;}
table.gui-table th{font-weight:bold;background:#ccc;}
</style>
</head>
<body>
<table>
<tr>
<th>table head (row1, col1)</th>
<th>table head (row1, col2)</th>
<th>table head (row1, col3)</th>
</tr>
<tr>
<td>table data (row1, col1)</td>
<td>table data (row1, col2)</td>
<td>table data (row1, col3)</td>
</tr>
<tr>
<td>table data (row2, col1)</td>
<td>table data (row2, col2)</td>
<td>table data (row2, col3)</td>
</tr>
</table>
</body>
</html>
html table 边框
最新推荐文章于 2024-01-15 16:57:15 发布