字体面无法在Web服务器上运行

时间:2014-05-29 05:39:28

标签: html css fonts

我一直在尝试修复我当前项目中有关字体的问题。该网站似乎无法找到我在本地主机上已经上传的字体字体似乎正在工作。该路径也与localhost中的路径相同,当我在firebug上检查它时,我收到的网络错误很奇怪

这是我应用字体的CSS代码

@font-face {
    font-family: 'kulturistaregular';
    src: url('fonts/kulturista/kulturista_medium-webfont.eot');
    src: url('fonts/kulturista/kulturista_medium-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/kulturista/kulturista_medium-webfont.woff') format('woff'),
         url('fonts/kulturista/kulturista_medium-webfont.ttf') format('truetype'),
         url('fonts/kulturista/kulturista_medium-webfont.svg#kulturistaregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

这是我当前项目的链接

http://192.163.215.153/baronpage/

1 个答案:

答案 0 :(得分:0)

我在你的项目中挖掘并发现主kulturista文件夹拼写为大写字母K(Kulturista)。托管环境中的区分大小写可能会阻止加载这些资产吗?

这是(可能)相关的stackoverflow答案:https://stackoverflow.com/a/17113291/2803192