1、在Gemfile中增加 gem 'bootstrap-sass', '~> 3.2.0.2'
2、bundle install
3、把assets/stylesheets/application.css重命名为application.scss
4、在这个文件中增加:

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

5、在assets/javascriptsheets/application.js中增加://= require bootstrap-sprockets

 

备注:bootstrap中的样式变量可以在文件中进行覆盖

 

相关文章:

  • 2021-12-15
  • 2021-12-15
  • 2021-06-07
  • 2021-05-10
  • 2021-07-26
  • 2021-12-13
  • 2021-11-29
猜你喜欢
  • 2021-10-17
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2022-01-06
  • 2021-11-23
相关资源
相似解决方案