首页 > 其他 > 详细

切图全在

时间:2017-01-26 07:45:12      阅读:190      评论:0      收藏:0      [点我收藏+]

<div class="img-container">
<div class="img-left"></div>
<div class="img-right"></div>
</div>
<style>

.img-container{
position: relative;
width: 200px;
height: 100px;
border:solid 4px red;
}

.img-left{
background: url(http://demo.imatlas.com/img/left.jpg);
background-size: cover;
width: 100%;
height: 100%;
}

.img-right{
position: absolute;
left: 0;
top: 0;
background: url(http://demo.imatlas.com/img/right.jpg);
background-size: cover;
-webkit-mask-image: -webkit-linear-gradient(left top, transparent 50%, white 50%);
width: 100%;
height: 100%;
}</style>

切图全在

原文:http://www.cnblogs.com/jayruan/p/6351228.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!