Css 字体不在cakephp中工作?

Css 字体不在cakephp中工作?,css,font-awesome,Css,Font Awesome,下面是我的代码。我为cakephp添加了很棒的字体。但是在我的输出中,没有出现这个问题 HTML <i class="fa fa-institution"></i> 你在哪里给这个。在html链接或按钮中 检查是否正确地包含字体 如果你是链接的意思 $this->Html->link(“,[action here],[escape'=>false]) 我也在为我的cakphp 3项目使用令人敬畏的字体图标。它对我来说工作正常我注意到的另一件事是,您可能忘记了复制fon

下面是我的代码。我为cakephp添加了很棒的字体。但是在我的输出中,没有出现这个问题

HTML

 <i class="fa fa-institution"></i>

你在哪里给这个。在html链接或按钮中

  • 检查是否正确地包含字体

  • 如果你是链接的意思
    $this->Html->link(“,[action here],[escape'=>false])


  • 我也在为我的cakphp 3项目使用令人敬畏的字体图标。它对我来说工作正常

    我注意到的另一件事是,您可能忘记了复制fonts文件夹,它应该放在webroot目录中。由于您确认它显示的是方形框而不是图标,因此我建议您将字体文件夹复制到正确的位置。

    不清楚实际问题是什么,也不清楚这与CakePHP相关的原因。你的CSS被包括在内了吗?展示你如何在你的问题中加入令人敬畏的字体。
     .fa {
      display: inline-block;
      font: normal normal normal 14px/1 FontAwesome;
      font-size: inherit;
      text-rendering: auto;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      transform: translate(0, 0);
    }
    .fa {
      display: inline-block;
      font: normal normal normal 14px/1 FontAwesome;
      font-size: inherit;
      text-rendering: auto;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      transform: translate(0, 0);
    }