Css 在chrome中使用字体,但在firefox和ie中不使用

Css 在chrome中使用字体,但在firefox和ie中不使用,css,internet-explorer,firefox,font-face,Css,Internet Explorer,Firefox,Font Face,我想标题已经说明了我的问题所在 这是我的代码,我希望你能说出我做错了什么: @font-face { font-family: 'Deer'; src: url('fonts/Deer.eot') format('embedded-opentype'); src: url('fonts/Deer.woff') format('woff'), url('fonts/Deer.ttf') format('truetype'); font-weight: normal;

我想标题已经说明了我的问题所在

这是我的代码,我希望你能说出我做错了什么:

@font-face {
  font-family: 'Deer';
  src: url('fonts/Deer.eot') format('embedded-opentype');
  src: url('fonts/Deer.woff') format('woff'),
       url('fonts/Deer.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
IE正在下载ttf和woff文件,但没有下载eot,firefox没有下载任何文件…

尝试使用

@font-face {
  font-family: 'Deer';
  font-weight: normal;
  font-style: normal;
  src: url('fonts/Deer.woff') format('woff'),
       url('fonts/Deer.eot') format('eot'),
       url('fonts/Deer.ttf') format('ttf');
}

我认为@font-face中允许的参数不超过1个
src

应该可以。。。也许你的woff文件坏了或者放错地方了?查看google字体示例:或者您安装了noscript?noscript阻止google字体,只需看看noscript图标。编辑你得到了错误的语法我想如果我删除除woff文件以外的所有内容,它仍然在色度中工作,我更改了格式描述符和字体顺序“Deer.woff”文件的确切来源是什么?我只能在dafont.com上找到Deer.ttf。你自己转换了吗?是的,我(用)转换了它,但woff文件似乎可以工作,因为如果我删除其他文件并在chrome中尝试,它仍然可以工作。我刚刚用onlinefontconverter.com转换了它,它在firefox中也可以用上面的代码工作。看这里: