[英]Rails 4: Bootstrap-sass and glyphicons
使用bootstrap-sass宝石,但无法在我的视线中显示字形图标。
宝石文件
gem 'bootstrap-sass', '2.3.2.0'
gem 'sass-rails', '>= 4.0.0'
CSS文件
@import "bootstrap";
视图
<i class="glyphicon glyphicon-indent-right"></i>
尝试使用
CSS文件
@import "bootstrap-sprockets"; //this allow the gliphicon to work
@import "bootstrap";
这与我的Gemfile一起使用
gem 'bootstrap-sass', '3.2.0.1'
gem 'sass-rails', '~> 4.0.0'
使用Bootstrap 2.3+时,您需要<i class="icon-indent-right"></i>
。
检查官方指南 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.