console
<div class="parent" >
<div class="avatar">
</div>
<div class="content">
内容区域不好搞啊……
</div>
<div class="background">
</div>
</div>
body{
background-image: url("https://colorhub.me/imgsrv/MsiBkYML5y37tyjv2A9xjN");
background-repeat: no-repeat;
}
.parent{
width: 600px;
height:300px;
margin:100px 0 0 0;
position: relative;
}
.avatar{
width: 170px;
height: 170px;
overflow: hidden;
position: absolute;
top: -73px;
left: 67px;
border-radius: 50%;
background-image: url('https://colorhub.me/imgsrv/Nm8XU8JbTowchjHAUvGJS5');
background-size: cover;
background-position: center;
}
.avatar:hover{
}
.content{
position: absolute;
width: 100%;
height: 100%;
z-index: 10;
padding: 100px 0 0 200px;
}
.background{
position: absolute;
width: 100%;
height: 100%;
border-radius: 10px;
background-image: -webkit-radial-gradient(
150px 10px,
circle,
rgba(255,255,255,0) 0px,
rgba(255,255,255,0) 100px,
rgba(255,255,255, 1) 100px
);
filter: drop-shadow(0 0 4px red);
}
img{
width: 100%;
}