V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
xiaohaoprog
V2EX  ›  程序员

如何让IE内核的浏览器支持服务端自定义字体呢?

  •  
  •   xiaohaoprog · 2011-01-21 23:16:02 +08:00 · 5730 次点击
    这是一个创建于 4836 天前的主题,其中的信息可能已经有所发展或是发生改变。
    @font_face 在webkit下很好用,但是在ie内核和firxfox下都不起作用,有什么办法吗?

    border_radius也是,ie内核不行,css实现不了圆角矩形,还是得用javascript.
    7 条回复    1970-01-01 08:00:00 +08:00
    dimlau
        1
    dimlau  
       2011-01-21 23:27:17 +08:00
    IE7 以及以上版本也支持。
    dimlau
        2
    dimlau  
       2011-01-21 23:27:52 +08:00
    我是说 @font_face
    ssword
        3
    ssword  
       2011-01-21 23:29:51 +08:00
    以前在哪本css书上看到说用特定字体显示一块文字的方法是把这块文字放到flash里...
    lianghai
        4
    lianghai  
       2011-01-22 00:40:17 +08:00
    Typekit 有对这个问题的简单介绍:
    http://blog.typekit.com/2010/12/08/type-rendering-font-outlines-and-file-formats/
    主要是因为对字体格式的要求不同。
    需要用各种 hack 来解决。所以推荐尽量用 Typekit 这样的一键式服务。
    lianghai
        5
    lianghai  
       2011-01-22 00:42:51 +08:00
    而 @ssword 说的那个方法叫 sIFR:
    http://en.wikipedia.org/wiki/SIFR

    不过这段时间因为 web font 的成熟,sIFR 好像已经越来越少了。
    chone
        6
    chone  
       2011-01-22 02:46:57 +08:00
    字体上对于IE来说SIFR是个好的方案。
    border-radius这个就只能用背景图片等这些替代方案了。
    xiaohaoprog
        7
    xiaohaoprog  
    OP
       2011-01-22 15:17:45 +08:00
    @chone @lianghai

    谢谢,去了解一下
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1059 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 19:11 · PVG 03:11 · LAX 12:11 · JFK 15:11
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.