我在我的 Ruby on Rails 网站上使用 bootstrap-sass gem。我想让我的布局响应,所以我尝试添加 @import "twitter/bootstrap/responsive"
到各种文件,但我得到的只是一条消息,上面写着:
File to import not found or unreadable: bootstrap/responsive. Load path: Sass::Rails::Importer(site_path/app/assets/stylesheets/bootstrap_and_overrides.css.scss)
最佳答案
@import "bootstrap-responsive";
正如 bootstrap-sass documentation 中所说的那样对于版本 2。这是在 bootstrap-sass 版本 3 中删除的,它始终是响应式的。
关于ruby-on-rails - 如何使用 Rails 使 Twitter Bootstrap 响应式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16742159/