此篇为图片展示的放大展示,主要是运用HTML和js
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<style>
#img_small img{
border: 1px solid gray;
height: 100px;
}
#img_show img{
border: 1px solid gray;
height: 600px;
width: 400px;
}
#img_small img:hover{
cursor: pointer;
border:1px solid red;
}
</style>
<script>
function over(obj){
document.getElementById("img").src = obj.src;
}
</script>
</head>
<body>
<div id="img_show">
<img id="img" src="img/01.jpg" />
</div>
<div id="img_small">
<img src="img/01.jpg" onmouseover="over(this)"/>
<img src="img/02.jpg" onmouseover="over(this)"/>
<img src="img/03.jpg" onmouseover="over(this)"/>
<img src="img/04.jpg" onmouseover="over(this)"/>
<img src="img/05.jpg" onmouseover="over(this)"/>
</div>
</body>
</html>