我已经用谷歌和 stackoverflow 搜索了几个小时,但仍然无法正常工作。 我的问题是 ie8 完全忽略了我的字体声明,当我转到网络选项卡时,它甚至不需要来自服务器的字体(我没有看到错误,但我也没有看到调用)。有人有想法吗? 我正在使用 compass :
@include font-face(
fontello,
font-files(
"fontello.eot?98351649",
"fontello.eot?98351649?iefix",
"fontello.woff?98351649",
"fontello.ttf?98351649",
"fontello.svg?98351649#fontello"
),
$weight:normal,
$style:normal
);
编译为:
@font-face {
font-family: fontello;
src: url('/static/fonts/fontello.eot?98351649') format('embedded-opentype'), url('/static/fonts/fontello.eot?98351649?iefix') format('embedded-opentype'), url('/static/fonts/fontello.woff?98351649') format('woff'), url('/static/fonts/fontello.ttf?98351649') format('truetype'), url('/static/fonts/fontello.svg?98351649#fontello') format('svg');
font-weight: normal;
font-style: normal;
}
然后:
body {
font-family: fontello, Arial, Helvetica, Verdana !important;
}
有什么想法吗?谢谢
最佳答案
Fontello 在 IE8 中存在一些已知问题(而 IE8 在自定义字体方面存在问题)。
在此处查看类似问题:https://github.com/fontello/fontello/issues/70并在此处检查可能的答案:http://css-tricks.com/forums/topic/ie8-and-fontello/
作为一名开发人员,我的建议是:要么放弃 IE8,要么放弃 Fontello 并选择使用图像/ Sprite 的经典方法。
关于css - ie8 忽略了我所有的字体声明,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19862134/