CSS @ font-face不工作在ie [英] CSS @font-face not working in ie

查看:108
本文介绍了CSS @ font-face不工作在ie的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下CSS在Firefox中工作,但不是IE。显然,字体在目录内。任何建议?

I have the following CSS that works within Firefox but not IE. Obviously, the fonts are within the directory. Any suggestions?

@font-face {
    font-family: "Futura";
    src: url("../fonts/Futura_Medium_BT.eot"); /* IE */
    src: local("Futura"), url( "../fonts/Futura_Medium_BT.ttf" ) format("truetype"); /* non-IE */  
}

body nav {
    font-family: Futura,  Verdana, Arial, sans-serif;
    font-size:1.2em;
    height: 40px;
}


推荐答案

麻烦与此,这里是你的解决方案:

If you're still having troubles with this, here's your solution:

http://www.fontsquirrel .com / fontface / generator

它比任何其他字体生成器工作得更好/更快,并且给出一个使用示例。

It works far better/faster than any other font-generator and also gives an example for you to use.

这篇关于CSS @ font-face不工作在ie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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