.css
@font-face {
font-family: 'NanumBarunGothic';
src: url(NanumBarunGothic.eot);
src: url(NanumBarunGothic.eot?#iefix) format(‘embedded-opentype’),
url(NanumBarunGothic.woff) format(‘woff’),
url(NanumBarunGothic.ttf) format('truetype');
}
@font-face {
font-family: 'NanumBarunGothic';
src: url(NanumBarunGothicBold.eot);
src: url(NanumBarunGothicBold.eot?#iefix) format(‘embedded-opentype’),
url(NanumBarunGothicBold.woff) format(‘woff’),
url(NanumBarunGothicBold.ttf) format('truetype');
font-weight: bold;
}
.htaccess
Addtype application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf
AddType application/font-woff .woof
这是我的语法。IE没问题。完美加载.eot。但是 Safari、Chrome 加载 .ttf 字体。为什么?那里有什么错误的语法吗?