[英]Rails Font Awesome Icons
I've read a few of the pages on using font awesome with rails and that the Gemfile should include 我已经阅读了几篇有关在Rails上使用超赞字体的页面,并且Gemfile应该包含
gem 'font-awesome-rails'
then run bundle install and the application.css should include *= require font-awesome
however, when I try to use the icons such as <i class="icon_home"></i>
to get the home icon, it shows up as blank, the grey icon should be the home icon picture gem 'font-awesome-rails'
然后运行捆绑安装,并且application.css应该包括*= require font-awesome
但是,当我尝试使用诸如<i class="icon_home"></i>
的图标时,主页图标,它显示为空白,灰色图标应为主页图标图片
I have also tried to edit the font-awesome.css file and change the @font face and edit the applications.rb to include the fonts folder as recommended in other pages but I get the same issue 我也曾尝试编辑font-awesome.css文件并更改@font字体并编辑application.rb以包含其他页面中推荐的fonts文件夹,但是我遇到了同样的问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.