【发布时间】:2018-02-17 11:16:38
【问题描述】:
我正在尝试使用我自己的字体在我的网站中发送电子邮件,并且我已将我的字体上传到我的网站,并且我在邮件中使用了 font-face 来使用它。 但它不起作用,并且在发送邮件中没有字体。 这是我的邮件:
<style>
@font-face {
font-family: 'bmitra';
src: url(http://roozbehi.ir/Fonts/BMitra.eot?#iefix) format("embedded-opentype"), url(http://roozbehi.ir/Fonts/BMitra.woff) format("woff"), url(http://roozbehi.ir/Fonts/BMitra.ttf) format("truetype");
font-weight: normal;
font-style: normal
}
#MailContainer {
width: 87%;
height: auto;
margin: 0 auto;
border: 1px solid rgb(204, 214, 220);
border-top: 5px solid rgb(46, 123, 175);
padding: 4% 6%;
color: #666;
font-family: bmitra;
letter-spacing: 0.5px;
font-size: 13.8px;
line-height: 16px;
background-color: rgb(249, 251, 251);
direction: rtl;
font-weight: 300;
}
</style>
<div id="MailContainer">
</div>
我该怎么办?
【问题讨论】:
-
campaignmonitor.com/resources/guides/web-fonts-in-email 有帮助吗?你用的是什么邮件客户端?