为什么我的ttf字体有404错误?

问题描述:

我的网站上,我用SASS为什么我的ttf字体有404错误?

我有以下代码:

---编辑---

@font-face { 
    font-family: 'BauhausBold'; 
    src: url('/Type/bauhaus_bold.eot'); 
    src: url('/Type/bauhaus_bold.eot?#iefix') format('embedded-opentype'), 
     url('/Type/bauhaus_bold.woff') format('woff'), 
     url('/Type/bauhaus_bold.ttf') format('truetype'), 
     url('/Type/bauhaus_bold.svg#BauhausBold') format('svg'); 
    font-weight: normal; 
    font-style: normal; 

} 

要使用该字体:

font-family: quote('bind'), arial; 

但我们总是在我的网站上发现错误404。查看图片:

Error 404

完整映像:http://i.stack.imgur.com/jAhWY.png

您可以访问网站:bindsolution.com如果他们的愿望。

谢谢大家的帮忙!

+0

你从哪里得到报价('绑定')? – Scott 2011-12-20 18:47:42

+0

请参阅:http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#string_functions – ridermansb 2011-12-20 18:52:51

+0

您是否尝试过在.woff和.svg中包含字体?此外,您的字体相对于您的域的路径? – Rito 2011-12-21 09:17:47

我刚刚有完全相同的问题,我无法解决它。我认为这是由于相对路径,但事实并非如此。事实证明,我在CSS中以大写字体命名了我的字体名称,而文件的名字实际上是小写字母。以前的服务器不关心,但这个。就这些。