<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
div{
/*在url中先宽后高,在ps中确定位置*/
width:25px;
height:25px;
border:1px solid red;
background:url(../img/images/2.png) no-repeat -225px -173px;
}
div:hover{
background:url(../img/images/2.png) no-repeat -224px -109px;
}
</style>
</head>
<body>
<div></div>
</body>
</html>
图片中取小图片的方法
最新推荐文章于 2022-08-16 11:27:38 发布