我已将“Helvetica Neue Bold”ttf转换为eot online。。但在ie8及以下版本中不起作用。。
我用过这个字体

@font-face {
    font-family: 'HelveticaNeueBold';
    src: url('font/helveticaneue/helveticaneuebold.eot');
    src: url('font/helveticaneue/helveticaneuebold.eot') format('embedded-opentype'),
         url('font/helveticaneue/helveticaneuebold.woff') format('woff'),
         url('font/helveticaneue/helveticaneuebold.ttf') format('truetype'),
         url('font/helveticaneue/helveticaneuebold.svg#HelveticaNeueBold') format('svg');

}

但它在ie8及以下版本中不起作用-在其他浏览器中,它运行良好
有人能帮我吗?请看下面链接中的“离开检查表前”标题
网址-http://d9692994.u118.c6.ixwebhosting.com/suitcase/check_list.html
提前谢谢

最佳答案

9岁以前的孩子有自己奇怪的方式。
试试这个CSS黑客:

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

local声明是必需的,因为它会混淆IE(10之前的版本,它不支持local中的@font-face选择器),并强制它回到以前的src声明。
这在IE4+中应该有效。

10-04 16:14
查看更多