字体未显示在IE上

时间:2019-10-14 15:16:09

标签: css internet-explorer font-face webfonts

@font-face {
  font-family: 'Museo-Sans';
  src:  url('../fonts/MuseoSans/MuseoSans-900.otf') format('opentype'),
        url('../fonts/MuseoSans/MuseoSans-900.eot'),
        url('../fonts/MuseoSans/MuseoSans-900.eot?#iefix') format('embedded-opentype');
  font-weight: 900;
  font-style: normal;
}

在Internet Explorer上不显示。我将otf文件转换为eot,但是在这里我自己添加第三行。如何正确转换以使文件具有此?#iefix

1 个答案:

答案 0 :(得分:1)

尝试使用.woff格式使其在IE11中工作

var doc = await SwaggerDocument.FromJsonAsync(json);
await new RequiredVisitor().VisitAsync(doc);
相关问题