【问题标题】:Outlook 2003 and Font-SizesOutlook 2003 和字体大小
【发布时间】:2010-11-25 16:39:57
【问题描述】:

我有一个 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 或 12 像素。

有什么想法吗?

【问题讨论】:

    标签: html email outlook-2003


    【解决方案1】:

    您的代码中有很多标记。我刚刚尝试了发送电子邮件时 Outlook 2010 标记的外观 - 因为在向 Outlook 2003 发送邮件时,没有下划线的链接可以完美地工作。事不宜迟:

    <a href="http://example.org">
        <span style='text-decoration:none;'>My Link Text not underlined</span>
    </a>
    

    需要注意的重要一点:它将span 放在链接中以进行样式设置。无论如何都不要使用&lt;font&gt;

    Outlook 有一个很好的“功能”来自动完成超链接 - AFAIK 这仅适用于您键入的文本,但可能值得一试,也许客户正在自动完成您的链接以加下划线? (真的只是猜测)。有一个修复程序可以打开自动完成链接here(仍然需要在注册表中摆弄并在HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Preferences 处创建一个名为DisableAutoUrlCompletion 的DWORD)。

    为了完整起见,使用 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>
    

    【讨论】:

      【解决方案2】:

      @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 &gt;&gt;</strong></a>
      

      这里还有一个关于跨多个电子邮件客户端的 CSS 支持的便捷指南:http://www.campaignmonitor.com/css/

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2020-01-24
        • 1970-01-01
        • 1970-01-01
        • 2011-12-26
        • 2012-05-07
        • 2012-11-26
        • 1970-01-01
        相关资源
        最近更新 更多