0

コンパス 0.12.2 を使用しています...config.rb で構成参照 http_images_path を使用しようとしていますが、この参照を使用しているようには見えません...それでも画像はローカルに解決されますディレクトリ...何か不足していますか?

助けてくれてありがとう!!

Config.rb

http_path = "/"
# Get the directory that this configuration file exists in
dir = File.dirname(__FILE__)
# Compass configurations
sass_path = dir
css_path = File.join(dir, "..", "css")
#images_dir = "../resources/images"
http_images_path = "http://myurl/img/"
output_style = :expanded
environment = :development

css ファイル:

@import "compass";

.dir
{
  background: image-url("guide.jpg");
}
4

1 に答える 1

0

コンパス ウォッチを使用している場合は、更新された config.rb を有効にするために再起動する必要があります。

于 2013-03-12T22:45:21.817 に答える