【问题标题】:How is my second font not loading?我的第二个字体怎么没有加载?
【发布时间】:2018-10-24 11:26:09
【问题描述】:

【问题讨论】:

    标签: html css fonts


    【解决方案1】:

    我是通过直接上传到 GitHub 来实现的,代码如下:

    @font-face {
      font-family: "Kimberley";
        src: url("../Submit/kimberle.ttf") format("truetype");
    }
    @font-face {
      font-family: "LemonMilk";
        src: url("../Submit/LemonMilk.ttf") format("truetype");
    }
    @font-face {
      font-family: "rc";
        src: url("../Submit/R&C-Demo.otf") format("opentype");
    }

    【讨论】:

      【解决方案2】:

      您似乎忘记用} 关闭您的第一个@font-face

      此外,某些字体格式并不总是适用于网络。有时您必须使用webfont-converter 转换它们。

      @font-face {
        font-family: "Kimberley";
          src: url(http://www.princexml.com/fonts/larabie/kimberle.ttf) format("truetype");
      }
      
      @font-face {
        font-family: "r_c";
          src: url(https://www.dropbox.com/s/p38qag2pb8zwdlq/R%26C-Demo.otf?dl=1) format("otf");
      }
      

      【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-28
      • 2020-07-31
      • 2017-06-12
      • 1970-01-01
      • 2016-02-01
      相关资源
      最近更新 更多