0

我有一个 Rails 4 项目,其中的bootstrap-sassmixinsborder-radius(3px)无法识别。我不确定我做错了什么,但以下是我认为相关的文件部分:

// myfile.css.scss
@import "bootstrap";

#hotel-form {
  display: none;
  border: 1px gray solid;
  padding: 1em;
  margin-top: 2em;
  @include border-radius(3px);
}

我不需要在上面导入引导程序,但无论如何我都这样做是为了让border-radiusmixin 被识别。

# Gemfile
... lots of other stuff
gem 'bootstrap-sass', github: 'thomas-mcdonald/bootstrap-sass'
... and more other stuff

// application.css
*= require_self
*= require_tree .

不知道application.css是不是问题。我从 CDN 获得引导程序,如下所示:

-# application.html.haml

= stylesheet_link_tag "//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css"
= javascript_include_tag "//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"

除了在我的开发机器上安装引导程序之外,我已经尝试了所有不同的组合,没有任何乐趣。任何指针表示赞赏。

谢谢

4

0 回答 0