Outlook 2003 和字体大小
我有一封 html 电子邮件,它在除 Outlook 2003 之外的每个客户端中都可以正常工作,其中链接有下划线(即使使用 text-decoration: none;
)和 字体-size
变小。
代码摘录:
<td valign="top" align="left" style="line-height: 31px; font-size: 31px;">
<font face="Arial, Helvetica, sans-serif" size="3" color="#6b565d" style="line-height: 60px; font-size: 62px;"><strong>25% off</strong></font>
</td>
示例链接:
<font face="Arial, Helvetica, sans-serif" size="3" color="#ffffff" style="line-height: 16px; font-size: 22px;"><a href="<squeeze.attribute.link.story01_text>" title="Book your sale room now" style="color: #ffffff; text-decoration: none; font-size:22px; background-color: #b50f18;"><font color="#ffffff"><strong>Mooo, I'm some text >></strong></font></a></font>
此 font-size
更改为 11 或 12px 左右。
有什么想法吗?
I have a html email which works correctly in every client except Outlook 2003, where the links have underlines (even with text-decoration: none;
) and the font-size
changes to be smaller.
Excerpt from code:
<td valign="top" align="left" style="line-height: 31px; font-size: 31px;">
<font face="Arial, Helvetica, sans-serif" size="3" color="#6b565d" style="line-height: 60px; font-size: 62px;"><strong>25% off</strong></font>
</td>
Sample Link:
<font face="Arial, Helvetica, sans-serif" size="3" color="#ffffff" style="line-height: 16px; font-size: 22px;"><a href="<squeeze.attribute.link.story01_text>" title="Book your sale room now" style="color: #ffffff; text-decoration: none; font-size:22px; background-color: #b50f18;"><font color="#ffffff"><strong>Mooo, I'm some text >></strong></font></a></font>
And this font-size
changes to around 11 or 12px.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的代码中有很多标记。我刚刚尝试了发送电子邮件时 Outlook 2010 的标记的外观 - 因为在将邮件发送到 Outlook 2003 时,没有下划线的链接可以完美地工作。言归正传:需要
注意的重要事项:它在其中放置了一个
span
样式链接。没有使用任何。
Outlook 有一个很好的“功能”来自动完成超链接 - 据我所知,这仅适用于您键入的文本,但它可能值得一试,也许客户端会自动完成您的链接以加下划线? (真的只是猜测)。有一个修补程序可以关闭自动完成链接此处(仍然需要在注册表中进行修改,然后在
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Preferences
中创建一个名为DisableAutoUrlCompletion
的 DWORD)。为了完整起见,这里使用 Outlook 2010 发送的一封非常简单的电子邮件的完整电子邮件正文在 Outlook 2003 中完美地显示(相同的字体大小,没有下划线 - 都一样)。 [请记住 - 其中有很多并不真正需要的 Microsoft“垃圾”,例如 Calibri 样式,尽管使用了 Arial]
Lot's of Markup in your code there. I just tried how Outlook 2010's markup looks when sending e-mail - because having links without underline works flawlessly when sending mails to Outlook 2003. Without further ado:
The important thing to note: It puts a
span
within the link for styling. No usage of<font>
whatsoever.Outlook has the nice "feature" to autocomplete hyperlinks - AFAIK this is only for text you type, but it might be worth a shot, maybe the clients are autocompleting your links to be underlined? (Really just guessing). There is a hotfix to turn of autocompleting links here ( one still needs to fiddle in the registry and create a DWORD named
DisableAutoUrlCompletion
atHKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Preferences
).Just for completeness here the full e-mail body of a really simple e-mail sent with Outlook 2010 showing flawlessly in Outlook 2003 (same font size, no underline - all the same). [Bear in mind - lot's of Microsoft "junk" in there which is not really needed, like Calibri styles even though Arial was used]
@Neurofluxation:尝试 -
对于摘录:
对于链接:
这里还有一个跨多个电子邮件客户端的 CSS 支持的便捷指南: http://www.campaignmonitor.com/css/
@Neurofluxation: Try --
For the excerpt:
For the link:
Here's also a handy guide for CSS support across a multitude of e-mail clients: http://www.campaignmonitor.com/css/