我的问题很简单,但我自己无法解决。 有人知道如何在ie7中导入字体吗? 我使用并在所有导航器中工作的代码,除了:
@font-face { font-family: "Interstate"; src: url("interstate_regular.ttf"); }我发现的只是ie7不能支持它,但最好确定它。
好吧,如果有人知道如何解决这个问题,我会很高兴。 ;)
My problem is pretty simple, but I just can't solve it by myself. Does anybody know how to import fonts in ie7? The code that I use and works in all navigators, except ie is:
@font-face { font-family: "Interstate"; src: url("interstate_regular.ttf"); }All that I found is that ie7 can't support it, but it's better to be sure of it.
Well, if anyone knows how to solve this (or not), I'd be really glad. ;)
最满意答案
我相当肯定IE7支持@ font-face但是(请原谅我,因为我曾经担心过IE7因此内存模糊)我相信IE 7和8处理URL的方式存在错误。
你最好的选择是在fontsquirrel上使用@ font-face生成器 ......它将创建一个包含所有必要修复的css类,使其在支持的浏览器中工作。
I'm fairly certain IE7 supports @font-face but (forgive me, been a while since I ever worried about IE7 so memory is fuzzy) I believe there is a bug in the way IE 7 and 8 process the URL's.
Your best bet is to use the @font-face generator at fontsquirrel... it will create a css class with all the necessary fixes to make it work in as many browsers as supported.
更多推荐
发布评论