Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/35.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
Javascript 更改leaver.js中的背景图像样式_Javascript_Css_Reveal.js - Fatal编程技术网

Javascript 更改leaver.js中的背景图像样式

Javascript 更改leaver.js中的背景图像样式,javascript,css,reveal.js,Javascript,Css,Reveal.js,我试图访问reveal.js中背景图像的样式,原因有三: a) 我想在概览模式下覆盖背景图像 b) 我想用CSS模糊一些背景 我在上找到了两篇文章,这对我很有帮助: (a) (b) 但是我肯定遗漏了什么,所以我创建了这个JSFIDLE来演示这个问题: 您可以看到突然出现了两个背景图像。我做错了什么 谢谢, 德克您必须覆盖“.backgrounds”类,而不是“.state background”。背景图像不放在“.slides”中。这就是CSS代码不会模糊背景图像的原因 .background

我试图访问reveal.js中背景图像的样式,原因有三:

a) 我想在概览模式下覆盖背景图像 b) 我想用CSS模糊一些背景

我在上找到了两篇文章,这对我很有帮助:

(a) (b)

但是我肯定遗漏了什么,所以我创建了这个JSFIDLE来演示这个问题:

您可以看到突然出现了两个背景图像。我做错了什么

谢谢, 德克

您必须覆盖“.backgrounds”类,而不是“.state background”。背景图像不放在“.slides”中。这就是CSS代码不会模糊背景图像的原因

.backgrounds {
     -webkit-filter: blur(5px);
     -moz-filter: blur(50px);
     -o-filter: blur(5px);
     -ms-filter: blur(5px);
     filter: blur(5px);
 }
.backgrounds {
     -webkit-filter: blur(5px);
     -moz-filter: blur(50px);
     -o-filter: blur(5px);
     -ms-filter: blur(5px);
     filter: blur(5px);
 }