我很难理解为什么我的字体在 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;
}
这是 site .根据我的理解,这是正确的做法
最佳答案
我看不出您的 CSS 有任何问题。我敢打赌这是一个跨域问题(我过去遇到过)。看看这篇文章:http://davidwalsh.name/cdn-fonts .
关于html - 字体在 Firefox 中不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20875401/