我在本地添加了一些字体,并且工作正常。但是,当我在html页面中的服务器上同样使用该字体时,它不起作用。一些字体是
字体家族:“ SWIS721 Cn BT”,字体家族:“ SWIS721 Md BT”

另请参阅我要求使用字体的代码

<tr>
    <td>
        <img src="http://www.rblbank.com/images/Emailer/Travel-Mailer/Travel-final-mailer-2/3.png" class="logo4" alt="dfsds" />
    </td>
</tr>
<tr>
    <td style="font-size: 13px; color: #2c387c; padding-left: 41px; line-height: 1.5em; font-family: 'SWIS721 Cn BT'; word-spacing: -2px; height: 60px; text-align: left;">
        What's more, you can convert your travel expenses greater than Rs. 5000
        <br />
        into easy monthly installments with RBL Bank
        <img src="http://www.rblbank.com/images/Emailer/Travel-Mailer/Travel-final-mailer-2/5.png" class="logo6" alt="dfsds" style="vertical-align: middle;" />
    </td>
</tr>


请帮忙,为什么它不起作用。由于我对如何在服务器上实现字体没有太多想法

最佳答案

您的PC已安装您使用的字体。但是网络服务器没有它。这就是为什么使用@fontface解决每个字体问题的原因。您也可以使用google font

Convert Your font Here

关于html - 字体家族在服务器上不起作用,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/25605269/

10-14 23:34
查看更多