@ font-face没有加载字体

时间:2016-09-26 17:29:44

标签: html css fonts font-face

我有这个css:

@font-face {
font-family: 'test';
src: url(test.woff2) format('woff2'),
     url(test.woff) format('woff'),
     url(test.ttf) format('truetype');
font-weight: normal;
font-style: normal;
}

body {
font-family: 'test';
font-size: 14px;
}

并且它不会呈现自定义字体。我使用的是Chrome,因此我可以查看资源,而且我的网站没有加载任何字体。

编辑:现在我可以加载字体,但似乎没有使用

1 个答案:

答案 0 :(得分:0)

好的,问题是我的字体不包含我的语言字母