自定义字体仍然不会在IE中工作 [英] Custom Font STILL wont work in IE

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

问题描述

我试图让自定义字体Duke-Fill显示的网页是 http: //www.hamlinforcongress.com/helpout.php

The webpage where I'm trying to get the custom font "Duke-Fill" to display is http://www.hamlinforcongress.com/helpout.php

我正在使用:

@font-face {
font-family: 'header_font';
src: url('Duke-Fill.eot?#iefix') format('embedded-opentype'), 
     url('Duke-Fill.woff') format('woff'), 
     url('Duke-Fill.ttf')  format('truetype'),
     url('Duke-Fill.svg#svgFontName') format('svg');
}
.header_font{
font-family: header_font;
}

我尝试了所有可以在互联网上找到的其他建议,可以在Internet Explorer中自定义字体显示。它在任何其他可以想象的浏览器中都能很好地工作,但不会出现IE(惊喜)。帮助?

I've tried every other suggestion I can find on the Internet, but nothing can make the custom font display in Internet Explorer. It works perfectly in every other conceivable browser, but not IE (surprise surprise). Help?

推荐答案

@font-face {
    font-family: 'NimbusSanConD-Lig';
    src: url('fonts/228BFB_1_0.eot');
    src: url('fonts/228BFB_1_0.eot?#iefix') format('embedded-opentype'),
         url('fonts/228BFB_0_0.woff') format('woff'),
         url('fonts/228BFB_0_0.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

这段代码适用于IE。它是使用字体松鼠

This code works in IE. It was generated using Font Squirrel

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

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