【发布时间】:2011-03-15 14:37:35
【问题描述】:
我为客户制作了一个 HTMLemailer。电子邮件发送者有几个换行符。在其他客户端上它看起来很完美,直到我遇到 MS Outlook 2007。Outlook 似乎无法识别 <br> 和 <div> 内的 iset 宽度。有解决办法吗?提前致谢。
<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,而是使用表格。
<br>应该可以工作。你能发布一些代码吗? -
你去。我用代码更新了帖子。那里有一个
。 -
据我所知,如果没有其他内容需要中断,
<br />将被忽略。也许尝试在换行后添加&nbsp;,看看结果是否符合您的预期? (另外,我不太相信 Outlook 的渲染,因为它使用 MS Office 的引擎而不是 IE)。 -
@Brad Christie - 那个工作的人!感谢您的提示和解释。
-
@BradChristie 您应该将您的建议作为答案,以便我们对其进行投票。 :) 信用到期。
标签: html css outlook-2007