0

有人可以帮我解决这个问题吗:我有这个字体:

@font-face {
    font-family: 'Museo500Regular';
    src: url('MuseoSans_500-webfont.eot');
    src: local('?'), 
    url('MuseoSans_500-webfont.woff') format('woff'), 
    url('MuseoSans_500-webfont.ttf') format('truetype'), 
    url('MuseoSans_500-webfont.svg#webfontr3rD8cn7') format('svg');
    font-weight: normal;
    font-style: normal;
}

这在 webkit 浏览器上不起作用,我不明白为什么...... O 其他浏览器,如 firefox 或 IE,它工作得很好,但只有在 webkit 上渲染不好。

在这里,您在带有下拉菜单的测试页面上有一个示例,例如,只需查看其他浏览器和 google chrome 上的字体。

http://mainpage.ueuo.com/

谢谢。

4

3 回答 3

1

我已经下载了你的 MuseoSans_500-webfont.ttf.. 看起来它不是一个有效的字体......或者没有在服务器上正确上传......请重新上传......

或转到以下链接并生成您的字体 css... http://www.fontsquirrel.com/fontface/generator

@font-face {
    font-family: 'Museo500Regular';
    src: url('museosans_500-webfont-webfont.eot');
    src: url('museosans_500-webfont-webfont.eot?#iefix') format('embedded-opentype'),
         url('museosans_500-webfont-webfont.woff') format('woff'),
         url('museosans_500-webfont-webfont.ttf') format('truetype'),
         url('museosans_500-webfont-webfont.svg#_.regular') format('svg');
    font-weight: normal;
    font-style: normal;

}
于 2012-10-25T11:51:01.893 回答
0

去掉字体名称中的单引号,不需要单个字体,只需要多个字体

font-family: Museo500Regular;
于 2012-10-25T15:53:29.873 回答
0

您的 CSS 定义在第 11 行@font-face有一个狂野(请参阅 参考资料)。这可能会给您带来一些问题。}default.css

另外,请,请,请不要使用 atable为您的布局!

于 2012-10-25T11:10:32.230 回答