【问题标题】:@font-face doesn't work in chrome, how can I fix that?@font-face 在 chrome 中不起作用,我该如何解决?
【发布时间】:2019-02-04 11:15:56
【问题描述】:

我在 Chrome 中使用字体来使用自定义字体,但它不起作用。 在 Firefox 中,它运行良好。我该如何解决? 这是我写的。

@font-face {
  font-family: 'abril';
  src: url('./assets/fonts/AbrilFatface-Regular.eot');
  src: url('./assets/fonts/AbrilFatface-Regular.eot?#iefix') format('eot'),
       url('./assets/fonts/AbrilFatface-Regular.woff') format('woff'),
       url('./assets/fonts/AbrilFatface-Regular.ttf') format('truetype'),
       url('./assets/fonts/AbrilFatface-Regular.svg') format('svg');
       font-weight: normal;
       font-style: normal;
}

div.page-title {
  font-family: 'abril';
}

【问题讨论】:

标签: html css google-chrome firefox font-face


【解决方案1】:

我以前用过这个字体。它对我来说效果很好。请尝试使用此Google Font(希望相同)。您甚至可以从那里下载并使用它。

【讨论】:

    猜你喜欢
    • 2014-05-19
    • 1970-01-01
    • 2013-03-18
    • 2013-10-16
    • 2015-08-23
    • 2016-11-30
    • 1970-01-01
    • 1970-01-01
    • 2013-01-04
    相关资源
    最近更新 更多