Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 未解析带有sass变量的背景图像_Html_Css_Variables_Sass_Background Image - Fatal编程技术网

Html 未解析带有sass变量的背景图像

Html 未解析带有sass变量的背景图像,html,css,variables,sass,background-image,Html,Css,Variables,Sass,Background Image,我用这个代码画了身体上的所有项目,我只需要在身体背景上的图像 $fondo: url(/grid/assets/img/backimage.png); { padding: 0; margin: 0; } body { ::before{ content:"" ; height: 1008px; width: 100%; display: flex; position: absolute; background-image: $fondo ; background-repeat: no-r

我用这个代码画了身体上的所有项目,我只需要在身体背景上的图像

$fondo: url(/grid/assets/img/backimage.png);

{ padding: 0; margin: 0; } body { ::before{

content:"" ; height: 1008px; width: 100%; display: flex; position: absolute; 
background-image: $fondo ; background-repeat: no-repeat ; background-position: 
center; background-size: cover; filter: blur(1.6rem);

}

}
这样试试

$fondo: url(/grid/assets/img/backimage.png);
 body { 
    padding: 0; margin: 0;
     &::before{
        content:"" ; 
        height: 1008px; 
        width: 100%; 
        display: flex; 
        position: absolute; 
        background-image: $fondo;
        background-repeat: no-repeat;
        background-position: center; 
        background-size: cover; filter: blur(1.6rem);
    }
}