字体浏览器兼容性问题

时间:2013-09-30 16:45:25

标签: css css3 font-face

以下是我目前使用的代码:

@font-face {
    font-family: 'otto';
    src: url('font/otto.eot') format('embedded-opentype'), 
    url('font/otto.woff') format('woff'), 
    url('font/otto.ttf')  format('truetype'),
    url('font/otto.svg#svgFontName') format('svg');
}

似乎在Chrome中完美运行,但几乎所有其他东西都呈现出一种完全不同的字体,这种字体更大,看起来很糟糕。

1 个答案:

答案 0 :(得分:1)

这有效:

@font-face{
    font-family:otto;
    src: url('../font/otto.eot');
    src: url('../font/otto.eot?#iefix') format('embedded-opentype'),
    url('../font/otto.woff') format('woff'),
    url('../font/otto.ttf') format('truetype'),
    url('../font/otto.svg#Otto') format('svg');
}
相关问题