雪碧图

作者: 心i_af0a | 来源:发表于2018-12-27 19:15 被阅读0次
    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <title>雪碧图</title>
    </head>
    <body>
    <style type="text/css">
        .box{
        display: block;
        width: 48px;
        height: 38px;
        background-image: url("amazon-sprite_.png");
        background-repeat: no-repeat;
        }
        .box:link{
        background-image: url("amazon-sprite_.png");
        background-position: -11px -340px;
        }
        .box:hover{
        background-image: url("amazon-sprite_.png");
        background-position: -58px -339px;
        }
        .box:active{
        background-image: url("amazon-sprite_.png");
        background-position: -126px -339px;
        }
        </style>
    </body>
    </html>
    

    相关文章

      网友评论

          本文标题:雪碧图

          本文链接:https://www.haomeiwen.com/subject/iaudlqtx.html