HTML图片折叠
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>Document</title>
<style type="text/css">
.div1{
background-image:url("css/33.png");
width:376px;
height:224px;
background-repeat:no-repeat;
border:1px solid blue;
position:Relatively;
}
.div2{
background-image:url("css/icon.png");
width:15px;
height:15px;
background-repeat:no-repeat;
border:4px solid red;
position:Absolute;
top:86px;
left:260px;
}
.div3,.div2{
background-position:-50px -25px;
top:54px;
left:205px;
width:20px;
height:20px;
}/*background-position:-35px -25px;左右,上下*/
</style>
</head>
<body>
<div class="div1">
<div class="div2"></div>
<div class="div3"></div>
</div>
</div>
</body>
</html>
原图33:
原图icon:
效果图: