<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<style type="text/css">
/* 公用样式 */
#main{
width:300px;
height:300px;
overflow: hidden;
}
#img{
width:300px;
height: 300px;
cursor: pointer;
transition:all 0.5s ease;
}
</style>
<script type="text/javascript">
function change(){
document.getElementById("img").style.transform = "scale(1.1)";
}
function reset(){
document.getElementById("img").style.transform = "scale(1)";
}
</script>
</head>
<body>
<div id="main">
<img id="img" src="res/htmlLX/pen.jpg" onmouseover ="change()" onmouseout="reset()" />
</div>
</body>
</html>
