在 CSS 中实现背景模糊的效果。

实现方式:CSS 背景滤镜 backdrop-filter 。

1
2
3
#sth {
backdrop-filter: blur(10px);
}

滤镜方法和含义:

滤镜释义
blur模糊
brightness亮度
contrast对比度
drop-shadow投影
grayscale灰度
hue-rotate色调变化
invert反相
opacity透明度
saturate饱和度
sepia褐色

 上一篇

Website