【问题标题】:Compass and http_images_path指南针和 http_images_path
【发布时间】:2013-03-12 22:36:35
【问题描述】:

我在指南针 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");
}

【问题讨论】:

    标签: image http path compass-geolocation


    【解决方案1】:

    如果您正在使用指南针手表...您需要重新启动才能使更新的 config.rb 生效。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-09-25
      • 2012-10-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多