我的字體適用於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');
}
here's the website I'm working on
請如[的jsfiddle(http://jsfiddle.net)值得信賴的服務創造該問題的一個簡化的測試案例。我不信任隨機網站的鏈接。 – zzzzBov
Firefox中的CSS調試工具會告訴你一切你需要知道的東西 –
嗯不是路徑有點奇怪「url(」./fonts「不應該是」url(「../fonts」? – drip