【发布时间】:2017-12-14 14:34:35
【问题描述】:
我正在努力解决主要用于 Outlook/Office 365 的 HTML 电子邮件设计。根据各种网站上的建议,我将我的内容表包装在条件 cmets 中,以便为其提供固定宽度(不支持最大宽度)外表)。但是,这些条件 cmets 中的内容也会显示在 Apple Mail(桌面版和移动版)中。谁能告诉我为什么?
这是我正在使用的条件代码:
<!--[if (gte mso 9)|(IE)]>
<table align="center" border="0" cellspacing="0" cellpadding="0" width="600">
<tr>
<td align="center" valign="top" width="600">This should ONLY show up in Outlook
<![endif]-->
<table bgcolor="#bbbbbb" align="center" border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width:700px; border:1px solid blue">
<tr>
<td>
CONTENT FOR ALL EMAIL CLIENTS
</td>
</tr>
</table>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->
“这应该只显示在 Outlook 中”的文本正在邮件中显示。我也可以在 Mail 中看到周围(条件)表的红色边框。为什么这个条件不能将该代码的范围限制在 Outlook 中?
【问题讨论】:
-
您的代码 sn-p 没有出现在我测试过的任何 Apple、AOL、Andoid、IOS、Yahoo、Gmail 客户端中。它只显示在 Outlook 中。它不会显示在 Outlook 365 或 Outlook.com 中。也许您没有发布的代码中有某些内容。
-
嗯。可能是。我可以问一下您在测试中发送的 from 是什么吗?我是从 Outlook (PC) 发送的
-
我从litmus.com 发送来测试不同的电子邮件客户端和putsmail.com 来测试不同的设备。我使用 Adobe Campaign 向客户发送电子邮件。我们有一半的订阅者使用 Outlook,因此在 Outlook 中进行测试对我来说非常重要。
标签: outlook html-email conditional-comments