请帮帮忙,我正想写一封回复邮件,从两列到一列,一切都很顺利,直到我到达Outlook2013,它会在每个相邻对齐的表格的右边添加一条黑线。我试着用边框折叠:折叠函数来重置它,但是它没有任何效果。基本上,我将两个表放在一个表单元中对齐。
<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>
发布于 2013-02-27 23:59:10
嗯。这是Outlook显示它在浮动表格之间保留的1px间距/边框。你不能摆脱它。差不多吧。不过,您可以对其重新着色。
对于需要添加的小1px间隙/线:
border: 1px solid #COLOR;
对于每个浮动的表格,一定要调整表格的宽度,以避免“浮动下降”。其中#COLOR是表格的背景颜色。
如果你有很大差距的问题,你需要在你的头脑中把这个放在一个样式标签中:
table {mso-table-lspace:0pt;mso-table-rspace:0pt; border-collapse:collapse;}
发布于 2015-06-10 02:38:59
通常我发现神秘边框的颜色与body
元素上的background-color
相同。例如,如果你有一个绿色的背景与白色的内容区域,线条将是绿色的白色。
要在这种情况下修复它,您可以将body
背景设置为白色,这样就可以修复它。差距仍然存在,但您看不到它们。然后将绿色背景颜色应用于容器表。
https://stackoverflow.com/questions/14939712
复制