Can I apply CSS(3) filters ONLY on image sections?

后端 未结 3 1127
耶瑟儿~
耶瑟儿~ 2021-01-02 09:35

I have a full screen background image

.bg { 
    left: 0;
    min-height: 100%; 
    min-width: 100%; 
    position: fixed; 
    top: 0; 
    z-index: -1; 
}         


        
3条回答
  •  鱼传尺愫
    2021-01-02 10:11

    You can actually apply blur for the before selector and inherit background-image instead of specifying url twice.

    That makes the html structure more evident

    JSFiddle Demo

提交回复
热议问题