<!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>
作者:浮华_e823
链接:https://www.jianshu.com/p/dfeaebb3eceb
來源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。
网友评论