【问题标题】:Bootstrap Icon is not loading引导图标未加载
【发布时间】:2015-10-22 07:25:23
【问题描述】:

我添加了一个按钮并使用 Bootstrap 对其进行了样式设置,但按钮的图标(字体)与样式不符。我无法弄清楚标记中缺少什么..这是 HTML..

<button class="btn-u btn-u-xs btn-brd btn-brd-hover" type="button" title="Add New" data-toggle="modal" data-target="#responsive" onclick="">
<i class="fa fa-plus"></i>
<span class="hidden-xs hidden-sm">Add New</span>
</button>

请帮我解决这个问题。谢谢

【问题讨论】:

标签: html css twitter-bootstrap icons


【解决方案1】:

Bootstrap 不包含 fa fa 图标。把它放在你的脑海里,你就可以开始了

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">

【讨论】:

  • 嗯,我添加了通过下载共享的链接,然后在我的应用程序中引用,但现在我在控制台上收到 Failed to load resource: the server responded with a status of 404 (Static File '/Assets/fonts/fontawesome-webfont.woff2' not found) 错误
  • 这个错误意味着文件不存在或者你的路径不正确。只需将 放入您的 即可使用 fa fa
  • @你能告诉我fontawesome-webfont.woff2字体的CDN
  • 好的。谢谢我得到了字体,我可以在页面上看到它,但现在 CSS 没有得到应用..任何建议..提前谢谢...
猜你喜欢
  • 2018-05-29
  • 2017-01-10
  • 1970-01-01
  • 2015-03-31
  • 2017-08-24
  • 1970-01-01
  • 2016-04-09
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多