且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法使用Internet Explorer 8获取@ font-face

更新时间:2023-11-10 15:03:04

删除IE条件并将其放入您的CSS

Remove the IE Conditional and put this in your CSS

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

}

也可以对自定义字体使用'...'字体像这样

also use '...' for custom font-face fonts like so

h1 ul li {
  font: 18px/27px 'cherokee', Arial, sans-serif;
}

同时检查您的路径设置是否正确。

Also check whether your paths are set correctly.