标签:idt html back no-repeat blog height dex 高斯 设置
html
<div class="bg"><img :src="" ></div>
css
.bg{
position: absolute;
width: 100%;
height: 810px;
z-index: -1;
background-repeat: no-repeat;
background-position: center;
background-size: cover;
-webkit-filter: blur(50px); //设置高斯模糊度
-moz-filter: blur(50px); //设置高斯模糊度
-o-filter: blur(50px); //设置高斯模糊度
-ms-filter: blur(50px); //设置高斯模糊度
filter: blur(50px); //设置高斯模糊度
overflow: hidden;
img{
position: absolute;
top:-12%;
left: -18%;
width: 120%;
height: 120%;
}
}
标签:idt html back no-repeat blog height dex 高斯 设置
原文地址:http://www.cnblogs.com/Code-Inconnu/p/7827385.html