你有太多的colspans,这可能会导致问题。您应该嵌套您的表格。
我已经创建了数百封电子邮件,并且从未对由电子邮件代码中的换行引起的空白有任何问题。 (Outlook 2007是我检查我的电子邮件的第一件事)
使用display:block;
并始终保留自己的图像<td>
。
尝试这样代替:
<html>
<head>
<title>Ambassador Newsletter</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>img {display:block}</style>
</head>
<!--REPLACE the following text with the path to the images on your server http://emaniocreative.com/eblasts/3_26_2013/ -->
<body style="margin: 0px; padding: 0px; background-color: #FFFFFF;" bgcolor="#FFFFFF"><table bgcolor="#ebebeb" width="100%" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td><table width="600" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td valign="top" style="padding-top:30px; padding-bottom:30px;">
<table id="Table_01" width="650" border="0" cellpadding="0" cellspacing="0" bgcolor="#ffffff" style="border-collapse: collapse;">
<tr>
<td>
<!-- NEST A TABLE INSTEAD-->
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#770000">
<tr>
<td style="padding:20px;">
header
</td>
</tr>
</table>
<!-- /NEST-->
</td>
</tr>
<tr>
<td>
<!-- NEST A TABLE INSTEAD-->
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="padding:20px;">
Body section 1
</td>
</tr>
<tr>
<td style="padding:20px;">
Body section 2
</td>
</tr>
</table>
<!-- /NEST-->
</td>
</tr>
</table>
</td></tr></table></td></tr></table></body></html>
在我的例子我用填充,而不是细胞间距。
您从不需要空白的间隔图像。在空单元格使用
代替,如果你不喜欢使用填充:
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#770000">
<tr>
<td height="20" colspan="3">
</td>
</tr>
<tr>
<td width="20">
</td>
<td width="610">
header
</td>
<td width="20">
</td>
</tr>
<tr>
<td height="20" colspan="3">
</td>
</tr>
</table>
在一个侧面说明,从Outlook转发时(例如Gmail),(MSO的礼貌有垂直间隔不可回避的问题正常的p标签添加),但对于最初的收件人没有问题。
谢谢你的建议。我尝试使用display:inline-block确保border-collapse:collapse;是财产集,甚至拿出所有的空白,以确保http://pastebin.com/aeTBi9kw仍然得到这些差距看到的图像http://tinypic.com/r/2gtdhu1/6这是一个头刮。我离开了显示器:因为它们帮助Gmail弥合了横向差距。 – BMCwebdev