@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>渐变至透明</title>
<style>
* {
margin: 0;
padding: 0;
}
.lanren {
width: 474px;
height: 472px;
background: url('../../../../Content/selfishimg/TB2GvzGp88kpuFjSspeXXc7IpXa_!!2947115176.jpg_480x.jpg') no-repeat;
margin: 100px auto;
position: relative;
border-left:10px solid #8fd9f5 ;
border-top:10px solid #8fd9f5 ;
border-right:10px solid #fff ;
border-bottom:10px solid #fff ;
}
.lanren .title {
height: 50px;
line-height: 50px;
text-align: left;
color: #fff;
font-size: 14px;
padding: 0 20px;
position: absolute;
left: 30px;
top: 200px;
background-image: -webkit-linear-gradient(right, rgba(231,51, 104, 0) 0%, rgba(231,51, 104, 1) 100%);
background-image: -moz-linear-gradient(right, rgba(231,51, 104, 0) 0%, rgba(231,51, 104, 1) 100%);
background-image: -o-linear-gradient(right, rgba(231,51, 104, 0) 0%, rgba(231,51, 104, 1) 100%);
background-image: linear-gradient(right, rgba(231,51, 104, 0) 0%, rgba(231,51, 104, 1) 100%);
}
</style>
</head>
<body style="background:#c0dff1;">
<div class="lanren">
<div class="title">最远的距离是心与心的距离</div>
</div>
</body>
</html>