0

我正在尝试让字体在所有浏览器中都可以使用,并且我正在使用现有代码,因为这是其他人的项目。我不知道他们以前是否工作过,但字体的 css 写成:

@font-face {
    font-family: 'ChampagneLimousinesRegular';
    src: url('css/fonts/champagne__limousines-webfont.eot');
    src: url('css/fonts/champagne__limousines-webfont.eot?#iefix') format('embedded-opentype'),
    url('css/fonts/champagne__limousines-webfont.woff') format('woff'),
    url('css/fonts/champagne__limousines-webfont.ttf') format('truetype'),
    url('css/fonts/champagne__limousines-webfont.svg#ChampagneLimousinesRegular') format('svg');
    font-weight: normal;
    font-style: normal;
}

这在 chrome 中显示很好,但在 Firefox/IE 中没有运气。

编辑:字体上传到服务器时工作,但在本地主机上运行并不能让我看到字体!

4

0 回答 0