<div id="test"> <table class="table-style"> <tr> <td>第一行</td> <td>第一行</td> <td>第一行</td> <td>第一行</td> </tr> <tr> <td>第二行</td> <td>第二行</td> <td>第二行</td> <td>第二行</td> </tr> <tr> <td>第三行</td> <td>第三行</td> <td>第三行</td> <td>第三行</td> </tr> </table> </div>
.table-style, td{ border:1px solid #EEE0E5; }
cellspacing:规定单元格之间的空间css
3.1 cellspacing="0"html
<table class="table-style" cellspacing="0">
单元格之间的空间去掉以后,边框会重叠,致使边框变粗spa
3.2 cellspacing="10"3d
.table-style{ border-collapse: collapse; }
.table-style{ border-collapse: separate; border-radius:10px; overflow: hidden; }
border-collape设置为separate边框去重效果就失效了,code
规定单元边沿与其内容之间的空白htm
<table class="table-style" cellpadding="20">