尝试在网站上实现自定义字体。尝试了以下代码没有成功

时间:2014-10-26 23:42:49

标签: html css fonts

我正在尝试使用VAGRoundedStd-Thin.otf作为我标题的字体。 我有字体,我使用ftp将其放在我的网站文件夹中。

之后我将以下代码放在css文件中。

@font-face{
    font-family:"VAG Rounded W02 Thin";
    src:url("rimowaedition.com/VAGRoundedStd-Thin.otf") format("opentype"); 
}

h2 {
    font-family: "VAG Rounded W02 Thin" !important;
}

我感到沮丧并开始为代码重要但是没关系。 关于我如何使用该字体的任何想法。

链接到网站:http://rimowaedition.com/

1 个答案:

答案 0 :(得分:0)

将其更改为此。

@font-face{
    font-family:"VAG Rounded W02 Thin";
    src:url("http://rimowaedition.com/VAGRoundedStd-Thin.otf") format("opentype"); 
}

希望这有效!