Ted*_*ead 10
是! 你可以用CSS和filter: blur();
演示http://jsbin.com/nidekeyajo/edit?html,css,js,output
* {
box-sizing: border-box;
margin: 0;
}
img {
height: auto;
max-width: 100%;
}
.wrap {
margin: 0 auto;
max-width: 400px;
position: relative;
}
.image {
display: block;
position: relative;
z-index: 2;
}
.shadow {
bottom: -30px;
filter: blur(20px);/* this is the magic part */
height: 100%;
left: 0;
position: absolute;
transform: scale(0.95);
width: 100%;
z-index: 1;
}Run Code Online (Sandbox Code Playgroud)
<div class="wrap">
<img class="image" src="https://lorempixel.com/800/450/nature/3/" alt="rocky shore">
<img class="shadow" src="https://lorempixel.com/800/450/nature/3/" alt="">
</div>Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
593 次 |
| 最近记录: |