http://fwy.pagodabox.comCSS @字體面絕對URL:字體不會在Firefox加載
http://friends-with-you.myshopify.com/
我有我的字體和CSS託管的pagodabox.com服務器上,並正在開發店裏部分shopify。我想使用pagodabox託管網站的相同樣式表作爲shopify網站。但我的字體不在Firefox中加載,版本13.0.1
FF或我的語法有問題嗎?謝謝!!!
@font-face {
font-family:'IcoMoon';
src:url('http://fwy.pagodabox.com/magic/themes/fwy/assets/fonts/IcoMoon.eot');
src:url('http://fwy.pagodabox.com/magic/themes/fwy/assets/fonts/IcoMoon.eot?#iefix') format('embedded-opentype'), url('http://fwy.pagodabox.com/magic/themes/fwy/assets/fonts/IcoMoon.svg#IcoMoon') format('svg'), url('http://fwy.pagodabox.com/magic/themes/fwy/assets/fonts/IcoMoon.woff') format('woff'), url('http://fwy.pagodabox.com/magic/themes/fwy/assets/fonts/IcoMoon.ttf') format('truetype');
font-weight:normal;
font-style:normal;
}
@font-face {
font-family:'square';
src:url('http://fwy.pagodabox.com/magic/themes/fwy/assets/fonts/SquareSerif-Light-webfont.eot');
src:url('http://fwy.pagodabox.com/magic/themes/fwy/assets/fonts/SquareSerif-Light-webfont.eot?#iefix') format('embedded-opentype'), url('http://fwy.pagodabox.com/magic/themes/fwy/assets/fonts/SquareSerif-Light-webfont.woff') format('woff'), url('http://fwy.pagodabox.com/magic/themes/fwy/assets/fonts/SquareSerif-Light-webfont.ttf') format('truetype'), url('http://fwy.pagodabox.com/magic/themes/fwy/assets/fonts/SquareSerif-Light-webfont.svg#SquareSerifLightRegular') format('svg');
font-weight:normal;
font-style:normal;
}
超級。謝謝! – 2012-07-23 17:19:30
如果您想要在nginx上實現相同的解決方案,請按照此說明操作:http://serverfault.com/questions/162429/how-do-i-add-access-control-allow-origin-in-nginx – 2013-02-05 16:46:02
「您不能在Firefox中使用@ font-face,而託管在其他域中的字體「。爲什麼Google字體提供的字體在Firefox下工作?這是否意味着除了重新配置服務器之外還有其他工作? – artfulrobot 2013-12-23 12:57:21