第1个回答 推荐于2017-09-26
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(function(){
$("#test").mouseover(function(){
$(this).animate({width:"120%"},500);
}).mouseout(function(){
$(this).animate({width:"100%"},500);
});
});
</script>
</head>
<body>
<div style="width:100px;height:100px;">
<div id="test" style="width:100px;height:100px;border:1px solid blue;"></div>
</div>
</body>
</html>本回答被提问者采纳