亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

位移、開始與停止

Original 2018-12-28 11:25:34 178
abstract:<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>jquery停止動(dòng)畫</title> <script type="text/javascript" src="../jquery-3.3.1.js&

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title>jquery停止動(dòng)畫</title>

<script type="text/javascript" src="../jquery-3.3.1.js" ></script>

<style>

.box1{

width: 200px;

height: 200px;

position: absolute;

background: blue;

}

</style>


</head>

<body>

<script type="text/javascript">

$(document).ready(function(){

$('#right').click(function(){

$('.box1').animate({left:'+500px',borderRadius:'100px'},3000)

$('.box1').animate({fontSize:'30px'})

$('.box1').animate({width:'400px'})

})

$('#stop').click(function(){

$('.box1').stop()

})

})

</script>

<button id="right">右移</button>

<button id="stop">停止</button>

<div class="box1">php中文網(wǎng)</div>

</body>

</html>


Correcting teacher:天蓬老師Correction time:2018-12-28 11:31:00
Teacher's summary:作業(yè)完成的不錯(cuò),思考一下,給button綁定事件,除了用jquery外,還有哪些方法?

Release Notes

Popular Entries