2013-02-18 15 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背景设置为白色,并且将修复它。差距仍然存在,但你看不到它们。然后,您会将绿色背景颜色应用于容器表。