zoukankan      html  css  js  c++  java
  • 切图全在

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

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

    .img-left{
    background: url(http://demo.imatlas.com/img/left.jpg);
    background-size: cover;
    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%);
    100%;
    height: 100%;
    }</style>

  • 相关阅读:
    hdu 3496
    poj 2374
    zoj 3399
    poj 1321
    sgu 365
    hdu 3555
    poj 3345
    poj 2355
    Android重命名文件
    在workflow中传值的sample
  • 原文地址:https://www.cnblogs.com/jayruan/p/6351228.html
Copyright © 2011-2022 走看看