0

I've have a html table which I am pasting into WP, but when I preview it, it shows space between the various cells, even though the cell spacing and padding is 0.

It works fine outside of WP, but inside Wordpress, it messes things up.

Any ideas?

 <table id="optin" width="573" height="296" border="0" cellpadding="0" cellspacing="0">
<tr>
    <td>
        <img src="http://www.flexkomsystem.com/images/optin/cont_01.gif" width="35" height="80" ></td>
    <td>
        <img src="http://www.flexkomsystem.com/images/optin/cont_02.gif" width="500" height="80" ></td>
    <td>
        <img src="http://www.flexkomsystem.com/images/optin/cont_03.gif" width="38" height="80" ></td>
</tr>
<tr>
    <td>
        <img src="http://www.flexkomsystem.com/images/optin/cont_04.gif" width="35" height="280" ></td>
    <td valign="top">


        <table width="96%" border="0">
          <tr>
            <td width="47%"><img style="float:left; vertical-align:top" src="http://www.flexkomsystem.com/images/optin/text.gif"  /></td>
            <td width="53%" rowspan="2"><script type="text/javascript" src="http://forms.aweber.com/form/67/1134442067.js"></script></td>
          </tr>
          <tr>
            <td><img style="float:left; vertical-align:bottom" src="http://www.flexkomsystem.com/images/optin/card.png"  /></td>
          </tr>
        </table>

        </td>
    <td>
        <img src="http://www.flexkomsystem.com/images/optin/cont_06.gif" width="38" height="280" ></td>
</tr>
<tr>
    <td>
        <img src="http://www.flexkomsystem.com/images/optin/cont_07.gif" width="35" height="48" ></td>
    <td>
        <img src="http://www.flexkomsystem.com/images/optin/cont_08.gif" width="500" height="48" ></td>
    <td>
        <img src="http://www.flexkomsystem.com/images/optin/cont_09.gif" width="38" height="48" ></td>
</tr>

4

1 回答 1

0

听起来您没有重置所有表格上的单元格填充/单元格间距,也可能值得检查 wordpress 中设置的样式以查看它们是否有任何不需要的默认值。

table { 
    border-spacing:0;
    border-collapse:collapse;
}

它也可能值得用width="x"一种风格代替。

于 2013-08-16T15:51:51.423 回答