Jquery中animate 不执行
<html><head><title>测试</title><metahttp-equiv="Content-Type"content="text/html;charset...
<html>
<head>
<title>测试</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<script type="text/javascript" src="jquery.js"></script>
<style type="text/css">
</style>
</head>
<body>
<p><div style="background:#98bf21;height:100px;width:100px;position:absolute;">
</div>
</p><br><BR><BR><BR><BR><BR><br>
<input type="button" value="move" onclick="animate()">
</body>
</html>
<script type="text/javascript">
function animate(){
$("div").animate({
left:"250px",
opacity:"0.5",
height:"150px",
width:"150px"
});
}
</script>
如题 按钮按了没反应
Failed to execute 'animate' on 'Element' 有这个报错 展开
<head>
<title>测试</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<script type="text/javascript" src="jquery.js"></script>
<style type="text/css">
</style>
</head>
<body>
<p><div style="background:#98bf21;height:100px;width:100px;position:absolute;">
</div>
</p><br><BR><BR><BR><BR><BR><br>
<input type="button" value="move" onclick="animate()">
</body>
</html>
<script type="text/javascript">
function animate(){
$("div").animate({
left:"250px",
opacity:"0.5",
height:"150px",
width:"150px"
});
}
</script>
如题 按钮按了没反应
Failed to execute 'animate' on 'Element' 有这个报错 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询