0

似乎无法在任何浏览器中使用它,有人知道我做错了什么吗?

在这里直播:http: //daveywhitney.com/ford/one/

@font-face {
    font-family: 'SackersItalianScriptStdRegula';
    src: url('font/sackersitalianscriptstd-webfont.eot');
    src: url('font/sackersitalianscriptstd-webfont.woff') format('woff'), url('font/sackersitalianscriptstd-webfont.ttf') format('truetype'), url('font/sackersitalianscriptstd-webfont.svg#webfontkWmYBTH2') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'EngraversMTRegular';
    src: url('font/engr-webfont.eot');
    src: url('font/engr-webfont.woff') format('woff'), url('font/engr-webfont.ttf') format('truetype'), url('font/engr-webfont.svg#webfontQUS0Zswo') format('svg');
    font-weight: normal;
    font-style: normal;
}    

#sidetop {
    width:90px;
    height:50px;
    font-size: 12px;
    font-family:EngraversMTRegular;
}

#sidetop ul li {
    float:right;
    margin:0 0 10px 0;
    font-family:EngraversMTRegular;
}

#names {
    width:150px;
    height:250px;
    float:right;
    overflow-y: scroll;
    font-size:30px;
    font-family:SackersItalianScriptStdRegula;
    color:#858484;
    margin:0 0 0 50px;
    font-weight:normal;
}
4

2 回答 2

1

网址是错误的。例如,我在这里没有字体文件:

http://daveywhitney.com/ford/one/css/font/engr-webfont.woff
于 2010-12-19T20:36:18.877 回答
1

您的字体文件路径不是您在此处发布的。在 CSS 文件中,您的 URL 如下所示:url('/font/engr-webfont.eot'). 这意味着您的字体预计将在http://daveywhitney.com/font/engr-webfont.eot. 前导斜杠使 url 相对于服务器根目录,而不是样式表。与其让我们猜测,或许您可以告诉我们您的目录结构是什么样的——字体相对于 css 文件的位置。

于 2010-12-19T20:41:38.303 回答