CSS学习笔记之给Table加线(转载)
2010-02-22 22:57 爱研究源码的javaer 阅读(324) 评论(0) 编辑 收藏 举报<style type="text/css">
.stats {
width: 480px;
border-collapse:collapse; /* 表格相邻边合并*/
}
.stats td {
border: 1px #000 solid;
}
</style>
<body>
<table class="stats">
<tr>
<td colspan="7">These stats here are good</td>
</tr>
<tr>
<td>The thing</td>
<td>10.0</td>
<td>9.8</td>
<td>6.7</td>
<td>10.0</td>
<td>9.8</td>
<td>6.7</td>
</tr>
<tr>
<td>The thing</td>
<td>10.0</td>
<td>9.8</td>
<td>6.7</td>
<td>10.0</td>
<td>9.8</td>
<td>6.7</td>
</tr>
</table>
</body>
转自:http://www.cnblogs.com/meiqunfeng/archive/2009/03/17/1414224.html