如何将URL图像添加为scss变量
我有以下scss风格。我添加了bg颜色作为变量&它工作正常。我需要添加'icons.png'作为变量如何将URL图像添加为scss变量,css,sass,scss-mixins,Css,Sass,Scss Mixins,我有以下scss风格。我添加了bg颜色作为变量&它工作正常。我需要添加'icons.png'作为变量 .home { @include themify($themes) { background: url(images/icons.png) themed('bgcolor'); } } 如何将“icons.png”添加为真实的?像 背景:url(图像/变量名称)主题('bgcolor') 你可以试试这个 $im
.home {
@include themify($themes) {
background: url(images/icons.png) themed('bgcolor');
}
}
如何将“icons.png”添加为真实的?像
背景:url(图像/变量名称)主题('bgcolor') 你可以试试这个
$image: 'icons.png';
.home {
@include themify($themes) {
background: url(images/${$image}) themed('bgcolor');
}
}
什么是“主题”?以及
$themes
var包含哪些内容?themify
mixin做什么?