【发布时间】:2012-07-17 22:49:18
【问题描述】:
我在 /css 中有一个 CSS 文件,在 /images 中有一个字体。我的 CSS 代码使用 @font-face,它可以在 IE8、IE9 和所有不错的浏览器中运行,但显然不能在 IE7 中运行。
@font-face {
font-family: 'ChunkFiveRegular';
src: url('../image/chunkfive-webfont.eot');
src: url('../image/chunkfive-webfont.eot?#iefix') format('embedded-opentype'), url(../images/chunkfive.woff) format('woff'), url(../images/chunkfive-webfont.ttf) format('truetype'), url(../images/chunkfive-webfont.svg) format('svg');
font-weight: normal;
font-style: normal;
}
h1, h2, h3 {
font-family: ChunkFiveRegular, Georgia, serif;
font-weight: normal;
text-transform: uppercase;
}
为什么文本仍然显示为格鲁吉亚?
【问题讨论】:
-
你能给我们一个页面链接吗?
-
如果你的字体在
/images,你需要使用/images,而不是/image。此外,'eot'应该比'embedded-opentype'工作得更好。也就是说,您的字体属于/css;字体不是图像。 -
@PointedEars 这就是问题所在。介意将其发布为答案吗?
标签: css internet-explorer font-face