<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>css精灵</title>
<style>
div{
width: 80px;
height: 80px;
background: url("pp.png");
background-repeat: no-repeat;
}
#box1{
/*191 480*/
background-position: -480px -191px;
}
#box2{
}
#box3{
}
#box4{
}
</style>
</head>
<body>
<div id="box1"></div>
<div id="box2"></div>
<div id="box3"></div>
<div id="box4"></div>
</body>
</html>
029精灵
最新推荐文章于 2022-04-11 15:05:51 发布