css - Why does the blur() filter have a transparent effect?
巴扎黑
巴扎黑 2017-05-16 13:26:12
0
1
718

The current situation is like this. Beijing sets a blurred background for store photos, but now using filterer to blur it has a transparent problem. How to solve it?
Because the blurred background is usually a pseudo element, but using vue cannot be obtained in css. For image resources, I wrote an element that fills the entire container through absolute positioning

#headWrapper{ position: fixed; top:0; width: 100%; height: 2.2rem; padding: .15rem .25rem; box-sizing: border-box; font-size: 14px; z-index: 2; } .e_header{ width: 100%; height: 100%; position: absolute; top:0; left: 0; background: cover; z-index: -1; filter: blur(10px); -weblit-filter:blur(10px); background-position: center; }
巴扎黑
巴扎黑

reply all (1)
仅有的幸福

Let’s try another method:

.e_header { //... background-color: #fff; } .e_header .cover { //... filter: blur(10px); }
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!