【发布时间】:2014-08-04 00:29:12
【问题描述】:
我从link 下载了 Bootstrap v3.1.1。我在我的 ASP.NET MVC 项目中使用 Glyphicon。
我面临的问题是,在我看来,我有时可以看到 Glyphicon 图标,但有时无法加载。我很困惑为什么会这样。这是我的 CSS :
<span class="glyphicon glyphicon-circle-arrow-right" style="font-size: 3em;color:grey;"></span>
我所做的是,我将 bootstrap.min.css 放在 Content 文件夹中,并将 Fonts 文件夹放在我的项目和内容文件夹之外。
我这样做的原因是,当我将字体文件夹放在内容中时,它根本没有显示。所以我确实喜欢这个。
项目结构:
项目名称->内容->bootstrap.min.css, bootstrap.css
项目名称->字体
我的代码:
<table>
<tr>
<td>
<h3> Image <span class="glyphicon glyphicon-circle-arrow-right" style="font-size: 3em;color:grey;"></span></h3>
</td>
</tr>
</table>
【问题讨论】:
-
向我们展示您的 HTML、CSS 和文件夹结构,否则我们无法帮助您
-
@Milanzor 我更新了我的帖子。请看一下。
标签: css twitter-bootstrap glyphicons