我正在构建一个响应式时事通讯,它可以在除Outlook 2007 & 2010之外的所有浏览器和电子邮件客户端中正确显示(尽管在Outlook 2003和以前以及2013和更高版本上都可以) 。Outlook 2007/2010添加表格单元格内的空间
有内部标题的表格单元格中的一个增加了额外的18像素的空间:
随着一些说明:
是AA表里面我的第一个细胞,似乎有有效的高度(186px)。 和图片的高度是186px,但是他们的细胞更大。
这里是头HTML:
<tr>
<td align="left" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="left" valign="top" style="border-collapse: collapse !important; background-color:#ffffff;" bgcolor="#ffffff">
<tr>
<td width="225" height="186" bgcolor="#7c64a9" class="nd-bandeau-cell1" style="background-color: #7c64a9">
<table width="100%" align="left" valign="top" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse !important;">
<tr>
<td width="20" rowspan="5" class="head-left-margin"> </td>
</tr>
<tr>
<td height="9" align="left" valign="top" class="nd-bandeau-left-top-cell" style="mso-line-height-rule: exactly; font-size: 9px; line-height: 9px;">
<img src="http://mywebsite/img/head-left-top.gif" width="205" height="9" alt="" class="nd-bandeau-left-top" style="display: block;" />
</td>
</tr>
<tr>
<td height="120" align="right" valign="bottom" class="nd-bandeau-titre-cell">
<img src="http://mywebsite/img/titre-lettre.jpg" width="204" height="71" alt="La lettre de votre patrimoine" class="nd-bandeau-titre" style="font-family: Arial, sans-serif; color: #ffffff; font-size: 20px;" />
</td>
</tr>
<tr>
<td height="44" align="left" valign="top" class="nd-bandeau-stitre-cell" style="font-family: Arial, sans-serif; font-weight: bold; font-size: 14px; color: #ffffff;">
N°1 | Octobre 2015
</td>
</tr>
<tr>
<td height="13" align="left" valign="top" class="nd-bandeau-left-bottom-cell" style="mso-line-height-rule: exactly; font-size: 13px; line-height: 13px;">
<img src="http://mywebsite/img/head-left-bottom.gif" width="205" height="13" alt="" class="nd-bandeau-left-bottom" style="display: block;" />
</td>
</tr>
</table>
</td>
<td width="178" height="186" align="left" valign="middle" class="nd-bandeau-cell2">
<img src="http://mywebsite/img/bandeau-left.jpg" width="178" height="186" alt="" style="display: block; background-color: #c3b9b1;" />
</td>
<td width="197" height="186" align="left" valign="middle" class="nd-bandeau-cell3">
<img src="http://mywebsite/img/bandeau-right.jpg" width="197" height="186" alt="" style="display: block; background-color: #c3b9b1;" />
</td>
</tr>
</table>
</td>
</tr>
我试过很多补丁,没有工作:将line-height
到细胞包含图像与mso-line-height-rule: exactly
之前,倒塌HTML,以消除任何空间,改变的doctype ...我这里有点想法,任何人都知道这里发生了什么?
很高兴你得到它的工作!如果你可以找到一种方法来重建模板,而不使用'font-size:0px'技巧,我会推荐它:SpamAssassin(一个非常受欢迎的过滤器)会给你每个实例的垃圾点。在这种情况下,它可能会很好,但请查看http://isnotspam.com/ – zazzyzeph
很好的知道,我没有意识到这一点。我刚刚在你链接的网站上做了一个测试,我有3.9分 - 它有点高但不被视为垃圾邮件。我认为我现在就要这样做了,因为通讯必须在今天发送,但下次我一定会记住这一点。再次感谢你的帮助。 – vard