@ font-face不能只使用内联字体系列

时间:2014-07-08 15:44:54

标签: html css fonts phpmailer

我需要你的帮助,我正在尝试更改PHPMAILER中的电子邮件字体,只是识别内联css,头部的样式标签不起作用(我不知道为什么)。

你知道如何插入@ font-face内联tbody吗?

$contenido = '<!doctype html>
    <html>
      <head>
        <style>
    @font-face {
        font-family: dinot-regularregular;
        src: url(xxxxxxxxxxxx/css/Font/dinot-regular-webfont.woff);
    }
    body {
        font-family: dinot-regularregular;
    }
        </style>
      </head>

    <body>';
$contenido .= '
<table> 
<tbody style="font-family:dinot-regularregular; font-size:16px; color:#666666;">
// Content
</tbody>
</table>';

感谢您的帮助。

1 个答案:

答案 0 :(得分:0)

在电子邮件客户端的支持下,格式化的电子邮件非常挑剔。如果您阅读本文,他们会有一个表格,显示有多少电子邮件客户端支持font-face。这不是一个很高的数字。

https://www.campaignmonitor.com/blog/post/3044/does-font-face-work-in-email

相关问题