CSS3实现毛玻璃效果

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
body {
background: url(xxxxxx.jpg);
}
.content: {
position: relative;
overflow: hidden;
....
}
.content::after {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: -1;
background: url(xxxxx.jpg);
background-repeat: no-repeat;
background-size: auto;
background-attachment: fixed;
filter: blur(4px);
margin: -30px;
}

利用css3 filter属性级background相关属性实现