三个图片,想达到效果:鼠标悬浮到该照片,该照片显示最前面
<!doctype html>
<html>
<head>
<title>我的第一个网页</title>
<meta charset="utf-8"/>
<style type="text/css">
div{
width:10px;
height:10px;
border:1px solid red;
margin:200px auto;
position:relative;
}
#img1{
positon:absolute;
left:0;
top:0;
}
#img2{
position:absolute;
left:50px;
top:-150px;
}
#img3{
position:absolute;
left:-250px;
top:-50px;
}
img:hover{
z-index:500;
}
</style>
</head>
<body>
<div>
<img src="../image3/10.bmp" id="img1"/>
<img src="../image3/3.bmp" id="img2"/>
<img src="../image3/4.bmp" id="img3"/>
</div>
</body>
</html>