0

我正在编写一份 HTML 时事通讯,我正在尝试将表示 Bar 的编码黑色行附加到包含图像的下方行。问题是我的黑色行不包含单独的空格,并且它没有连接到该行。这是我的这段代码。

<table border="0" cellpadding="0" cellspacing="5" width="100%">
    <tbody>
        <tr>
            <td width="190" bgcolor="#000000">Bar</td>

            <td width="190" bgcolor="#000000">Bar</td>

            <td width="190" bgcolor="#000000">Bar</td>

        <tr>

            <td width="190" height="100" >
                <img src="/Users/Desktop/90snostalgia.jpg" alt="" width="190" height="130"/>
            </td>


            <td width="190" height="100">
                <img src="/Users/Desktop/90snostalgia.jpg" alt="" width="190" height="130"/>
            </td>

            <td width="190" height="100" >
                <img src="/Users/Desktop/90snostalgia.jpg" alt="" width="190" height="130"/>
            </td>
        </tr>
    </tbody>
</table>
4

3 回答 3

0

如果我理解正确的话,在你的 CSS 中添加这样的东西应该能让你到达那里。

* { color:#fff } /** not needed. just couldn't see your fonts **/
table { width:572px }
tr td { border-left:1px solid white; padding:5px }
tr td:first-child { border-left: none }
于 2013-02-07T17:27:19.337 回答
0

这是因为单元格间距。尝试像这样反转单元格间距和单元格填充:

<table border="0" cellpadding="5" cellspacing="0" width="100%">
于 2013-02-07T17:21:09.040 回答
0

更改表格标签上的单元格间距... Cellspacing="0"...

<table border="0" cellpadding="0" cellspacing="0" width="100%">
于 2013-02-07T17:20:53.380 回答