所以,我刚开始使用Compass Framework,现在希望开始使用其原生spriting功能。这样做,我已将以下内容添加到我的scss文件的顶部:
string sql = "UPDATE Employees SET Designation = '" +textBox_BEUpdtD.Text +
"', Employee_Subgroup = '" +comboBox_BEupdt.Text +
"', Date_Of_Birth = " + dateTimePicker_DOBUpdt.Text +
", Date_Of_Joining = " + dateTimePicker_DojUpdt.Text +
" Where Employee_Name ='"+comboBox_EmpNm.Text+"' ";
SqlCommand cmd7 = new SqlCommand(, con7);
con7.Open();
int o = cmd7.ExecuteNonQuery();
MessageBox.Show(o +" : Record has been updated"); '
编译后,我收到以下错误:
@import 'compass/utilities';
@import "*.png";
@include all-img-sprites;
我已经四处寻找解决方案,但令我惊讶的是,即使它有多个线程 - 我似乎无法找到任何相关内容。
我已经尝试重命名文件夹,认为" img"文件夹可能是键盘或其他东西,但无济于事。您将在下面找到我的 config.rb 。
error path/to/my/project/css/scss/front.scss (Line 4: File to import not found or unreadable: *.png.
Load paths:
Compass::SpriteImporter
path/to/my/project/css/scss
C:/Ruby22/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets)
Compilation failed in 1 files.
[Finished in 1.7s]
答案 0 :(得分:0)
config.rb
文件中删除sprite_load_path,并将上面的内容更改为:
@import "raw/*.png";
@include all-raw-sprites;
工作正常。请注意,img文件夹仍在config.rb中设置。