有没有办法在ie7中通过css导入字体?(Is there a way of importing fonts through css in ie7?)

编程入门 行业动态 更新时间:2024-10-24 20:11:12
没有办法在ie7中通过css导入字体?(Is there a way of importing fonts through css in ie7?)

我的问题很简单,但我自己无法解决。 有人知道如何在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.

更多推荐

本文发布于:2023-07-28 01:17:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1298297.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:没有办法   字体   css   importing   fonts

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!