我能应用CSS滤镜到背景图片吗?

5
我希望能够像这样在背景中放置一张图片。
body{

    background-color: transparent !important;
    background-image: url("img.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: blur(5px);
-webkit-filter: blur(5px);
-moz-filter: blur(5px);
-o-filter: blur(5px);
-ms-filter: blur(5px)


}

但是还需要对其进行模糊滤镜处理。

然而,当我将其应用于整个页面时,除了背景图像之外的所有内容都被模糊了。

有没有办法只在背景图像上应用模糊效果?(除了在Photoshop或类似软件中进行模糊处理)。

1个回答

5

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接