2019-03-28作业

html:

zuoye1

zuoye

css:

.he{

    width: 45px;

    height: 33px;

    overflow: hidden;

    position: relative;

    margin: 50px auto;

}

.he img{

    /*display: inline-block;*/

    position: absolute;

    top: -335px;

    left: -10px;

}

.he img:hover{

    left: -59px;

}

.he img:active{

    top: -330px;

    left: -124px;

}

你可能感兴趣的:(2019-03-28作业)