我为客户做了一个HTMLemailer。电子邮件发送者有几个换行符。在其他客户端上,它看起来很完美,直到我遇到MS Outlook 2007. Outlook似乎无法识别<br>
和iset在<div>
内的宽度。有没有解决这个问题?提前致谢。MS Outlook 2007 <br>问题
<table width="602px" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td colspan="3">
<p align="center" style="font-family: arial; font-size: 11px; color: #000000;">If you are unable to read the contents of this email, please <b><a href="#" style="color:#000000; text-decoration:none;">click here</a></b> to view the online version.</p>
<br>
</td>
</tr>
<tr>
<td colspan="3"><a href="#"><img src="#" width="602" height="161" alt="#"></a></td>
</tr>
<tr>
<td colspan="3" style="border-top:2px black solid;"><br><br></td>
</tr>
你不应该在电子邮件html中使用div,而应该使用表格。 '
'应该工作。你可以发布一些代码吗? – Fabian 2011-03-15 14:40:35
你去了。我用代码更新了帖子。那里有一个
。 – user660763 2011-03-15 14:51:11
据我所知,如果没有其他内容需要中断,则会忽略'
'。也许可以在换行后加一个' ',看看结果是否是你期望的结果? (另外,我对Outlook的渲染没有太多信心,因为它使用MS Office的引擎而不是IE)。 – 2011-03-15 15:02:34