简体   繁体   中英

@font-face doesn't loading font

I have this 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;
}

And it doesn't renders custom font. I'm using chrome so I able to see resources, and there is no font loaded by my site.

Edit: now I'm able to load font, but it doesn't seems to be used

好的,问题是我的字体没有包含我所用语言的字母

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM