css - IE8 : Font-face, 限制 TTF 文件的大小?

标签 css internet-explorer web font-face

IE8 是否对其加载的字体文件大小有限制?例如,以下代码似乎不适用于某些字体(尤其是超过 2MB 的字体),但适用于较小的字体:

<!DOCTYPE html>
<html>
<HEAD>
<style type="text/css"> 
@font-face {
    font-family: 'Symbola'; 
    src: url('Symbola.ttf');
    }
.bars { font-family: 'Symbola'; }
</style>
</HEAD>
<body>
<div class="bars">
&#x23F3;
</div>
</body>
</html>

最佳答案

IE 8 不支持 @font-face 中的 TTF 字体。如果它似乎对某些字体这样做,原因是您的计算机将指定的字体作为已安装的字体。所以重要的不是大小,而是格式。

使用例如Fontsquirrel @font-face generator生成不同的字体格式,以实现跨浏览器功能。

关于css - IE8 : Font-face, 限制 TTF 文件的大小?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14470780/

相关文章:

css - headertext gridview 下的描述性文字

css - 如何在 2 列中拆分 wordpress 页脚的自定义菜单小部件

css - div 在浏览器调整大小时移动不正确

javascript - IE8 和 Modernizr : Object doesn't support this property or method?

html - 如果我的容器两侧有两个图像,我应该创建 3 个 div 吗?

web - Golang 路线不起作用

css - div 未正确对齐

javascript - 如何在 Internet Explorer 11 中滚动到某个元素,同时使其保持垂直居中?

internet-explorer - IE 兼容模式下的最小宽度

javascript - 卡在 'contenteditable'