abstract:<!DOCTYPE html><html><head> <title>jQuery的動(dòng)畫效果</title> <script type="text/javascript" src="../jQuery/jquery-3.3.1.min.js"></script> <st
<!DOCTYPE html>
<html>
<head>
<title>jQuery的動(dòng)畫效果</title>
<script type="text/javascript" src="../jQuery/jquery-3.3.1.min.js"></script>
<style type="text/css">
div{width: 200px;height: 200px;background: pink;position: absolute;}
</style>
<script type="text/javascript">
$(document).ready(function(){
$('#right').click(function(){
$('.box1').animate({
left:'+400px'
},3000)
$('.box1').animate({
fontSize:'40px'
},500)
})
$('#stop').click(function(){
$('.box1').stop(true)
})
})
</script>
</head>
<body>
<!-- 點(diǎn)擊右移按鈕 div右移 點(diǎn)擊停止按鈕當(dāng)前效果停止 -->
<button id="right">右移</button>
<button id="stop">停止</button>
<div class="box1">php中文網(wǎng)</div>
</body>
</html>
Correcting teacher:查無(wú)此人Correction time:2019-04-16 09:57:15
Teacher's summary:完成的不錯(cuò)。jq比js容易,多練習(xí),可以代替js的常規(guī)操作,繼續(xù)加油。