Full Page Blur in CSS

前端 未结 8 922
清酒与你
清酒与你 2020-12-08 09:59

How can I blur a whole page using CSS? Other elements such as images are allowed.

8条回答
  •  攒了一身酷
    2020-12-08 10:35

    You can use the filter property with blur, although it's not widely supported: http://jsfiddle.net/GkXdM/1/. It's supported on Chrome, but it comes with a big performance penalty when used on the whole page.

    body {
        filter: blur(2px);
    }
    

提交回复
热议问题