如何在HTML格式的表格单元格之间添加间距?

时间:2014-01-29 07:16:12

标签: html

我正在尝试复制此员工牌匾的样式,如此处所示,但只是他们如何处理名称表: http://www.fusionframes.com/products/EOM-Window-Mat-Burl-Plaque-Frame-Black-%26-Gold.html

我在弄清楚如何将金细胞分开以便黑色背景通过而黑色在桌子外面时,我很难用HTML。我已经调整了cellspacing但是没有这样做。我究竟做错了什么?谢谢!

<table border="40" bordercolor="#000000" style="background-color:#000000" width="100%" cellpadding="3" cellspacing="3">
<TR><TD>

<table border="20" bordercolor="#A67100" style="background-color:#F1F1D4" width="100%" cellpadding="3" cellspacing="3">
    <tr>
        <td>Jan 2014<BR>Name 1</td>
        <td>Dec 2013<BR>Name 2</td>
        <td>Nov 2013<BR>Name3 </td>
    </tr>
    <tr>
        <td>Table Cell</td>
        <td>Table Cell</td>
        <td>Table Cell</td>
    </tr>
    <tr>
        <td>Table Cell</td>
        <td>Table Cell</td>
        <td>Table Cell</td>
    </tr>
    <tr>
        <td>Table Cell</td>
        <td>Table Cell</td>
        <td>Table Cell</td>
    </tr>
    <tr>
        <td>Table Cell</td>
        <td>Table Cell</td>
        <td>Table Cell</td>
    </tr>
</table>
</TD>
</TR>
</table>

1 个答案:

答案 0 :(得分:1)

更改cellspacing="15"以在每个表格单元格之间获得空间

Fiddle

相关问题