SOURCE

console 命令行工具 X clear

                    
>
console
<div class="image-box">
    <img  src="//preview.qiantucdn.com/58pic/39/83/51/38d58PICe4pVahKqbCitT_PIC2018.png!qt324_nowater">
    <div class="btn1">收藏</div>
    <div class="btn2">免费下载</div>
</div>
.image-box{
    width: 276px;
    height: 368px;
    position: relative;
    font-size: 14px;
    overflow: hidden;
}
img{
    width: 100%;
    height: 100%;
}
.image-box::after{
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top:0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}
.btn1{
    position: absolute;
    right: 10px;
    top: -40px;
    z-index: 2;
    background: #fff;
    padding: 6px;
    border-radius: 4px;
    transition: all .3s;
}
.image-box:hover .btn1{
    top: 10px;
}
.btn2{
    position: absolute;
    z-index: 2;
    right: 10px;
    bottom: -42px;
    width: 160px;
    height: 42px;
    left: calc(50% - 80px);
    background-image: linear-gradient(to right,#32e696,#00BE6E);
    border-radius: 4px;
    color: #fff;
    text-align: center;
    line-height: 42px;
    transition: all .3s;
}
.image-box:hover .btn2{
    bottom: 38px;
}