【发布时间】:2013-03-25 19:32:40
【问题描述】:
我的 CSS 文件中有这段代码,但浏览器不显示字体:
@font-face {
font-family: 'font';
src: url("fonts/FS_Metal.ttf");
}
.menu_head {
width: 100%;
position: relative;
height: 30px;
font-family: 'font';
}
【问题讨论】:
-
试试:
font-family: font -
我试过ie,chrome和firefox,同样的问题
-
最佳猜测:Why Can I Not Implement @font-face? 的副本
-
你确定“fonts”目录和CSS文件是同级的吗?
-
我不知道你的目录结构是什么,但我认为你应该试试
src(../fonts/FS_Metal.ttf)