简体   繁体   English

Rails twbs / bootstrap-sass无法访问Glyphicons

[英]Rails twbs/bootstrap-sass trouble accessing Glyphicons

I'm doing something wrong but can't figure it out. 我做错了,但无法解决。 I'm using the following versions. 我正在使用以下版本。 Bootstrap stylesheets display fine and this gem is supposed to install the default Glyphicons, but I can't seem to get them to display. Bootstrap样式表可以正常显示,并且该gem应该安装了默认的Glyphicons,但我似乎无法显示它们。

twbs/bootstrap sass 3.3.3 rails 4.2.0 twbs / bootstrap sass 3.3.3导轨4.2.0

app/assets/javascripts/application.js app / assets / javascripts / application.js

//= require bootstrap-sprockets
//= require bootstrap
//= require angular
//= require angular-animate
//= require angular-resource
//= require angular-application

app/assets/stylesheets/application.css.scss app / assets / stylesheets / application.css.scss

@import "bootstrap-sprockets";
@import "bootstrap";

app/views/blah/show.html.erb app / views / blah / show.html.erb

<i class="icon-search"></i>

the above <i> tag should display the icon. 上面的<i>标记应显示图标。

Per http://getbootstrap.com/components/#glyphicons-examples I would recommend the following for displaying the icon with Bootstrap 3.3.x: 对于每个http://getbootstrap.com/components/#glyphicons-examples,我建议使用Bootstrap 3.3.x显示以下内容:

<i class="glyphicon glyphicon-search"></i>

http://jsfiddle.net/rp67pzz9/ http://jsfiddle.net/rp67pzz9/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM