【发布时间】:2014-11-30 17:04:39
【问题描述】:
我正在为我的 rails 应用程序使用 bootstrap 3。在视图页面中,引导图标未显示。
我的文件夹结构看起来像。
app/assets/stylesheets/bootstrap.min.css
app/assets/fonts/ ###font files
app/assets/images/ ###image files
在 bootstrap.min.css 中我调用 font-family 如下
@font-face{font-family:'Glyphicons Halflings';src:url('../fonts/glyphicons-halflings-regular.eot');src:url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),url('../fonts/glyphicons-halflings-regular.woff') format('woff'),url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'),url('../fonts/glyphicons-halflings-regular.svg#glyphicons-halflingsregular') format('svg')}
如果我做错了,请纠正我。
更新:
显示图标的代码:
<a title="edit" href="<%= edit_customer_customer_path(cust, from: "admin")%>">
<i class="icon-pencil bigger-130"></i>
</a>
【问题讨论】:
-
确保您的
glyphicons-halflings-regular.eot和app/assets/fonts/目录中有其他文件。
标签: css ruby-on-rails ruby twitter-bootstrap-3