摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>jQuery停止动画</title> <script type="text/javascript" src=&quo
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>jQuery停止动画</title>
<script type="text/javascript" src="jquery/jquery-3.3.1.js"></script>
<style type="text/css">
div{width: 200px;height: 200px;background: blue;position: absolute;color: #fff;}
</style>
</head>
<body>
<script type="text/javascript">
$(document).ready(function(){
$('#right').click(function(){
$('.box1').animate({left:'+500px'},2000)
$('.box1').animate({fontSize:'+40px'},500)
})
$('#stop').click(function(){
$('.box1').stop(true)
})
})
</script>
<button id="right">右移</button>
<button id="stop">停止</button>
<div class="box1">php中文网</div>
</body>
</html>
老师闯关的题目是Shop的参数,这个不是stop的参数吗
批改老师:韦小宝批改时间:2018-12-19 09:21:35
老师总结:好的!感谢反馈!可能是写的太快没注意吧!作业写的很不错哦!