2013-02-18 21 views
0

請幫助,我在我的智慧結尾,因爲我試圖製作一個響應式電子郵件,從兩列到單一列,一切都變得完美直到我到達Outlook2013爲止,它會在每張對齊的表的右側添加一條黑線。 我試圖用border-collapse:collapse函數重置它,但它沒有任何效果。 我基本上有兩個表格左對齊表格。Outlook 2013在每個嵌套表的右側創建一條黑色邊框線

<tr> 
     <td align="left" style="border-collapse:collapse"><table width="300" border="0" style="border-collapse:collapse" cellspacing="0" cellpadding="0" class="contenttable" align="left"> 
      <tr> 
      <td align="left" class="headercell" height="399" width="300" style="line-height:399px"><p style="mso-table-lspace:0;mso-table-rspace:0;"><img src="image" style="display:block; width:100% height:auto" alt="" border="0px" height="399" width="300" /></p></td> 
     </table> <table width="300" border="0" cellspacing="0" cellpadding="0" class="contenttable" style=" border-collapse:collapse" align="left"> 
      <tr> 
      <td align="left" class="headercell"><p style="mso-table-lspace:0;mso-table-rspace:0;"><img src="image" style="display:block; width:100% height:auto" alt="" /></p></td> 
     </table></td> 
     </tr> 
+0

您在編輯器中選擇了錯誤的圖標。 (引用而不是代碼)我爲你解決了這個問題。 – 2013-02-18 15:30:00

回答

0

是的。 Outlook展示了浮動表格之間保持的1px間距/邊界。你無法擺脫它。均田。你可以重新着色。

對於您需要添加的小1px的空隙/線:

border: 1px solid #COLOR; 

每一個浮動表是一定要調整表格的寬度,以避免出現「浮動下降」。其中#COLOR是表格的背景顏色。

如果遇到與你需要把這個在你的頭上的風格標籤很大的差距問題:

table {mso-table-lspace:0pt;mso-table-rspace:0pt; border-collapse:collapse;} 
0

通常我發現神祕邊框的顏色是一樣的background-colorbody元素。 EG如果您有白色內容區域的綠色背景,則線條會變成白色。

要在這種情況下修復它,您可以將body背景設置爲白色,並且將修復它。差距仍然存在,但你看不到它們。然後,您會將綠色背景顏色應用於容器表。