我正在使用 VML 使我的防弹 CTA 在 Outlook 中工作,它们似乎在任何地方都工作正常,除了在 Outlook 2013 120DPI 上,CTA 中的文本被截断:
在其他地方都工作正常:
这是 VML:
<!--[if mso]>
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="https://epredia.com/" style="height:34px;v-text-anchor:middle;width:176px;" arcsize="33.5px" strokecolor="#E5E5E6" fillcolor="#E5E5E6">
<w:anchorlock/>
<center style="color:#58595B;font-family:Helvetica, HelveticaArial, sans-serif, HelveticaNeueLTStd-Bd;font-size:18px;line-height:18px;">
<b style='font-family:Helvetica, HelveticaArial, sans-serif, HelveticaNeueLTStd-Bd;'>
Mini CTA
</b>
/center>
</v:roundrect>
<![endif]-->
最佳答案
您需要设置缩放比例。
您的 HTML 标记如下所示(您可能有不同的语言或其他属性):
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
在你的 <head>
中添加此:
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
<o:PixelsPerInch>96</o:PixelsPerInch>
</o:OfficeDocumentSettings>
</xml><![endif]-->
关于html-email - Outlook 2013 120DPI 上的 VML CTA 中的文本被截断,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62883142/