0

I have a problem that was answered in this thread here: CSS @font-face not working with Firefox, but working with Chrome and IE

but my client is hosted on yahoo hosting, which doesn't allow .htaccess files. Is there any alternative other than switching hosts? (which my client will not want to do)

Here is a link to the site: http://iwilldestroyyou.com/main/

4

1 回答 1

0

最适合我的是将字体文件放在与 .css 文件相同的目录中,无需使用 anny .htaccess 或其他服务器配置文件。

所以我有一个外部 fonts.css 文件,其中包含字体目录中的所有 css 字体行。然后我可以在我想使用这种字体的页面上包含这个 .css 文件。确保你没有创建额外的目录,这样你就可以在没有 anny 目录的情况下调用字体。

更多信息:https ://developer.mozilla.org/en-US/docs/Web/CSS/@font-face

于 2014-04-02T15:08:51.023 回答