Css SASS Compass和MS过滤器:使用带有MS过滤器的图像url

Css SASS Compass和MS过滤器:使用带有MS过滤器的图像url,css,sass,compass-sass,Css,Sass,Compass Sass,在compass中,可以使用指定图像目录的路径 我想在我的代码中使用以下Microsoft筛选器 filter: progid:DXImageTransform.Microsoft.AlphaImageLoader( src='arrow-big-right.png', sizingMethod='scale'); 在这段代码中,您必须指定图像的路径。我想使用图像url来做这件事。这样,如果我更改图像目录,路径将始终相同。这在SASS/Compass中可能吗 是的,这是可能的,只要用{}包装

在compass中,可以使用指定图像目录的路径

我想在我的代码中使用以下Microsoft筛选器

 filter: progid:DXImageTransform.Microsoft.AlphaImageLoader( src='arrow-big-right.png', sizingMethod='scale');

在这段代码中,您必须指定图像的路径。我想使用图像url来做这件事。这样,如果我更改图像目录,路径将始终相同。这在SASS/Compass中可能吗

是的,这是可能的,只要用
{}
包装
image-url()

正文
过滤器:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=#{image url('arrow-big-right.png')},sizingMethod='scale')

是的,这是可能的,只要用
{}
包装
image-url()

正文
过滤器:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=#{image url('arrow-big-right.png')},sizingMethod='scale')