自定义字体,EOT,不起作用 [英] custom fonts, eot, not working

查看:70
本文介绍了自定义字体,EOT,不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在IE7和IE8中使用自定义字体:

I cant get my custom fonts to work in IE7 and IE8:

http://i-creative.dk/iJob/

它在IE9,Firefox和Chrome中正常运行...

It works fine in IE9, Firefox and Chrome...

对于Firefox和Chrome,字体为TTF对于IE,它在EOT中

For Firefox and Chrome the fonts are in TTF And for IE, it's in EOT

但是,它仅在IE9中有效:(

However, it only works in IE9 :(

推荐答案

尝试改用此CSS格式:

Try this css formatting instead:

@font-face {
    font-family: 'fontName';
    src: url('/path/to/font.eot?') format('eot'), 
         url('/path/to/font.otf') format('otf'), 
         url('/path/to/font.ttf') format('truetype');
}

这就是我使用的(代替otf,woff和svg).而且我从未有任何IE无法呈现字体.

This is what I use (sans the otf, woff & svg instead). and I have never had any of the IE's not render the font.

这篇关于自定义字体,EOT,不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆