CSS blur on background image but not on content

前端 未结 5 2109
予麋鹿
予麋鹿 2020-11-27 06:21

I did this example.

I\'m trying to blur the background image, but the main content is blurred too (the )

How can I blur the backgrou

5条回答
  •  失恋的感觉
    2020-11-27 07:13

    You could overlay one element above the blurred element like so

    DEMO

    div {
        position: absolute;
        left:0;
        top: 0;
    }
    p {
        position: absolute;
        left:0;
        top: 0;
    }
    

提交回复
热议问题