这就是我试图做...模糊与锋利的边缘和干净的相同图像的背景图像。
.detail_image{
background:url("../images/hero-images.jpg") no-repeat;
background-size: cover;
background-position:center;
padding: 0 0 30%;
position: relative;
height:698px;
}
.detail_overlay{
background:url("../images/overlay-detail.png");
height: 100%;
position: absolute;
width: 100%;
-webkit-filter: blur(20px);
-moz-filter: blur(20px);
-o-filter: blur(20px);
-ms-filter: blur(20px);
filter: blur(20px);
}
.detail_img{
height: 100%;
margin-left: 165px;
position: absolute;
width: 50%;
box-shadow: 12px 0 15px -4px rgba(0, 0, 0, 1), -12px 0 8px -4px rgba(0, 0, 0, 1);
}
和正在发生的事情是整个DIV得到了模糊与它的图像和边缘模糊了。
与我的答案有什么不同? :) – Farside
你的解释很模糊,缺少示例代码。此外,作为概念的抽象证明,用户不需要提供代码片段。该方法清晰直接。 –
检查我提供的代码片段https://jsfiddle.net/ug26errq/ – Farside