3

我尝试使用 bootswatch-rails,但效果不佳,例如,按钮显示不正确,不像 bootwatch 网站上显示的那样。
我将 bootstrap-sass 和 bootswatch 放入我的 gemfile 并捆绑安装

group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'
  gem 'bootswatch-rails', '>=0.2.0'

  gem 'uglifier', '>= 1.0.3'
end
gem 'bootstrap-sass', '>= 2.1.0.0'

在我的 bootstrap_and_overrides.css.scss 文件中看起来像这样

// First import journal variables
@import "bootswatch/cerulean/variables";

// Then bootstrap itself
@import "bootstrap";

// Responsive styles go here in case you want them
@import "bootstrap-responsive";

// And finally bootswatch style itself
@import "bootswatch/cerulean/bootswatch";  

我真的不知道我做错了什么。

4

1 回答 1

0

您是否有任何其他未考虑的 css 文件被导入,例如scaffold.css(当您通过scaffold 命令生成资源时)?

于 2013-01-05T22:14:08.417 回答