2012-07-26 112 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>