Image config.rb http映像路径仅给出一个斜杠?

Image config.rb http映像路径仅给出一个斜杠?,image,sass,config,Image,Sass,Config,我对SASS开发Wordpress网站特别陌生。需要使用config.rb创建http://路径时出现问题,请执行以下设置: http_path = "/" css_dir = '/' sass_dir = '_/components/sass' javascripts_dir = '_/js' images_dir = 'http://localhost:8888/acdbox/wp-content/uploads/2015/03/' fonts_dir = '_/fonts' output

我对SASS开发Wordpress网站特别陌生。需要使用config.rb创建http://路径时出现问题,请执行以下设置:

http_path = "/"
css_dir = '/'
sass_dir = '_/components/sass'
javascripts_dir = '_/js'
images_dir = 'http://localhost:8888/acdbox/wp-content/uploads/2015/03/'

fonts_dir = '_/fonts'
output_style = :extended

relative_assets = true
disable_warnings = true
其输出为:

 background: url('http:/localhost:8888/acdbox/wp-content/uploads/2015/03/home-order-bg2.png')

缺少http双斜杠(http://),仅显示为(http://)单斜杠。我做错什么了吗?请帮忙。

明白了。我不确定这是否是正确的方法,但它是有效的。通过设置http_images_路径,将图像精确放置在何处,并将相对_资源设置为false

http_path = "/"
http_images_path = "http://localhost:8888/acdbox/wp-content/uploads/2015/03/"
css_dir = '/'
sass_dir = '_/components/sass'
javascripts_dir = '_/js'
images_dir = ''

fonts_dir = '_/fonts'
output_style = :expanded

relative_assets = false
disable_warnings = true
这是正确的方法吗?有没有更好的办法