0
你好我試圖用羅盤按照下進行轉換,但我得到一個編譯錯誤,指出「未定義混入背景圖片」錯誤編譯CSS資產指南針
#header_toolbar {
height: 40px;
/* The black toolbar gradient :) */
background: #313131; /* Old browsers */
@include background-image(linear-gradient(left top, #313131, #101010));
/*background: -moz-linear-gradient(top, #313131 0%, #101010 100%); *//* FF3.6+ *//*
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#313131), color-stop(100%,#101010)); *//* Chrome,Safari4+ *//*
background: -webkit-linear-gradient(top, #313131 0%,#101010 100%); *//* Chrome10+,Safari5.1+ *//*
background: -o-linear-gradient(top, #313131 0%,#101010 100%); *//* Opera 11.10+ *//*
background: -ms-linear-gradient(top, #313131 0%,#101010 100%); *//* IE10+ *//*
background: linear-gradient(top, #313131 0%,#101010 100%); *//* W3C */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#313131', endColorstr='#101010',GradientType=0); /* IE6-9 */
}
的Gemfile
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platform => :ruby
gem 'uglifier', '>= 1.0.3'
gem 'compass-rails'
gem "compass", "~> 0.12.1"
end
我失去了一些東西,但是當我補充說,行,我得到'發現導入未找到或可讀「 – 2012-07-29 11:53:52
你在Gemfile中有什麼?你使用羅盤寶石而不是指南針寶石? – 2012-07-29 12:02:06
更新爲包含寶石文件 – 2012-07-29 12:40:19