2012-07-26 56 views
0

我有一个单独的表格HTML,其中有3列(25px:580px:25px),在整个表格中,trs和tds都有白色背景。除Outlook 2010之外的所有浏览器均可正常工作。表格行之间的Outlook 2010间距问题

在Outlook 2010中,我在表格行之间的两个外部列中收到垂直间隔 - 它的间距约为3px。看起来背景白色要么不在整个单元格中显示,要么Outlook在换行符或类似内容中添加。

截图在这里:

http://postimage.org/image/ft3zqg7jl/

受影响的行的结构为:

<tr><td height="20" width="25" align="left" valign="top" bgcolor="#ffffff"></td> 
<td height="20" width="580" align="left" valign="top" bgcolor="#ffffff"></td> 
<td height="20" width="25" align="left" valign="top" bgcolor="#ffffff"></td> 
</tr> 

任何人任何想法是什么原因导致这个问题以及如何解决?

+0

尝试'边界崩溃:崩溃;' – 2012-07-26 17:18:14

回答

0

可能的解决方案:

  1. 设置background-color: #ffffff与CSS
  2. 添加受灾td&nbsp;并使用CSS来设置font-size: 0pxline-height: 0px
  3. 同时尝试上述两种的:)
0

图像应设置为内联显示:块

添加到您的嵌入式CSS:

table, table td { border:0; border-collapse:collapse; mso-table-lspace:0; mso-table-rspace:0; margin:0; padding:0; }` 

你应该把你的bgcolors的标签,而不是表细胞:

<table bgcolor="#ededed" cellpadding="0" cellspacing="0" border="0"> 
<tr> 
    <td> 
    <table bgcolor="#ffffff"cellpadding="0" cellspacing="0" border="0"> 
    <tr> 
     <td height="20" width="25" align="left" valign="top"></td> 
     <td height="20" width="580" align="left" valign="top"></td> 
     <td height="20" width="25" align="left" valign="top" ></td> 
    </tr> 
    </table> 
    </td> 
</tr> 
</table>