我的字体适用于 chrome、opera 和 safari,但不适用于 ie 或 firefox。即使在阅读了有关它的其他问题之后,我也无法理解@font-face。
@font-face {
font-family: "TikalSansBlack";
src: url("./fonts/TikalSansBlack.eot?");
src: url("./fonts/TikalSansBlack.woff") format("woff"),
url("./fonts/TikalSansBlack.ttf") format("truetype"),
url("./fonts/TikalSansBlack.svg") format("svg")
url("./fonts/TikalSansBlack.otf") format("opentype");
}
@font-face {
font-family: 'TikalSansMedium';
src: url('./fonts/TikalSansMedium.eot?');
src: url('./fonts/TikalSansMedium.woff') format('woff'),
url('./fonts/TikalSansMedium.ttf') format('truetype'),
url('./fonts/TikalSansMedium.svg') format('svg')
url('./fonts/TikalSansMedium.otf') format('opentype');
}
@font-face {
font-family: 'TikalSansThin';
src: url('./fonts/TikalSansThin.eot?');
src: url('./fonts/TikalSansThin.woff') format('woff'),
url('./fonts/TikalSansThin.ttf') format('truetype'),
url('./fonts/TikalSansThin.svg') format('svg')
url('./fonts/TikalSansThin.otf') format('opentype');
}