【问题标题】:Base_url to call outer css on codeigniter 3Base_url 在 codeigniter 3 上调用外部 css
【发布时间】:2023-04-08 14:19:01
【问题描述】:

我的结构是这样的

ci3
 -application
 -assets
    -css
      -home
        -main.css
    -fonts
      -home
      -icon
        -font-awesome

我有一些麻烦,在 main.css 中调用 font-awesome。 怎么称呼它?实际上,这是我的代码:

@font-face {
  font-family: 'FontAwesome';
  src: url('???');  //how to call it ?
  font-weight: normal;
  font-style: normal;
}

【问题讨论】:

    标签: css codeigniter codeigniter-3


    【解决方案1】:

    鉴于 CSS 代码,您可以返回三个目录/文件夹,然后导航到您的字体真棒文件。检查扩展程序。

    @font-face {
      font-family: 'FontAwesome';
      src: url('../../../fonts/icon/font-awesome');  /* Go to assets folder */
      font-weight: normal;
      font-style: normal;
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-08-21
      • 2018-07-26
      • 1970-01-01
      • 2016-04-17
      • 2015-02-16
      • 2012-07-26
      • 2016-02-19
      相关资源
      最近更新 更多