![](/img/trans.png)
[英]Why are my font-sizes changed by Outlook 2007, 10, 13, 16, 19?
[英]Outlook 2003 and Font-Sizes
我有一个html电子邮件,它可以在除 Outlook 2003 之外的每个客户端中正常工作,其中链接具有下划线(即使使用text-decoration: none;
),并且font-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左右。
有任何想法吗?
你的代码中有很多Markup。 我刚刚尝试了Outlook 2010的标记在发送电子邮件时的外观 - 因为在将邮件发送到Outlook 2003时,没有下划线的链接可以正常工作。没有进一步的麻烦:
<a href="http://example.org">
<span style='text-decoration:none;'>My Link Text not underlined</span>
</a>
需要注意的重要事项是:它在样式链接中放置了一个span
。 不使用<font>
。
Outlook具有自动完成超链接的漂亮“功能” - AFAIK这仅适用于您键入的文本,但它可能值得一试,也许客户端自动完成您的链接加下划线? (真的只是猜测)。 有一个修补程序打开自动填充链接在这里 (我们仍然需要在注册表中拨弄,创建一个名为DWORD DisableAutoUrlCompletion
在HKEY_CURRENT_USER\\Software\\Microsoft\\Office\\11.0\\Outlook\\Preferences
)。
为了完整起见,Outlook 2010中发送的一个非常简单的电子邮件的完整电子邮件正文显示在Outlook 2003中完美无缺(相同的字体大小,没有下划线 - 完全相同)。 [请记住 - 很多微软的“垃圾”在那里并不是真的需要,就像Calibri风格一样,即使使用了Arial]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o=
"urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns=
"http://www.w3.org/1999/xhtml">
<head>
<meta name="Generator" content="Microsoft Word 14 (filtered medium)" />
<style type="text/css">
/*<![CDATA[*/
<!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
-->
/*]]>*/
</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<title></title>
</head>
<body lang="EN-US" link="blue" vlink="purple" xml:lang="EN-US">
<div class="WordSection1">
<p class="MsoNormal"><span lang="DE" style=
'font-size:14.0pt;font-family:"Arial","sans-serif";color:black' xml:lang=
"DE"><a href="http://example.org/"><span style=
'color:black;text-decoration:none'>test</span></a></span></p>
</div>
</body>
</html>
@Neurofluxation:尝试 -
摘录:
<td valign="top" align="left">
<span style="color: #6b565d; font-size: 62px; line-height: 60px;"><strong>25% off</strong></span>
</td>
对于链接:
<a href="<squeeze.attribute.link.story01_text>" title="Book your sale room now" style="background-color: #b50f18; color: #ffffff; font-size: 22px; line-height: 16px; text-decoration: none;"><strong>Mooo, I'm some text >></strong></a>
这里还有一个方便的CSS支持指南,适用于众多电子邮件客户端: http : //www.campaignmonitor.com/css/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.