簡體   English   中英

字體在Firefox中不起作用

[英]font-face not working in firefox

我很難理解為什么我的字體無法在firefox中工作,它在chrome中工作得很好,這是我擁有的CSS:

@font-face {
    font-family: 'ArvoRegular';
    src: url('http://cf.shopious.com/fonts/arvo-fontfacekit/arvo-regular-webfont.eot');
    src: url('http://cf.shopious.com/fonts/arvo-fontfacekit/arvo-regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('http://cf.shopious.com/fonts/arvo-fontfacekit/arvo-regular-webfont.woff') format('woff'),
         url('http://cf.shopious.com/fonts/arvo-fontfacekit/arvo-regular-webfont.ttf') format('truetype'),
         url('http://cf.shopious.com/fonts/arvo-fontfacekit/arvo-regular-webfont.svg#arvoregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

.arvo-regular {
font-family: 'ArvoRegular', Arial, sans-serif;
}

這是網站 根據我的理解,這是正確的方法

我認為您的CSS沒有錯。 我敢打賭,這是一個跨域問題 (我以前曾遇到過)。 看一下這篇文章: http : //davidwalsh.name/cdn-fonts

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM