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

jQuery的動畫效果

Original 2019-04-15 16:34:08 191
abstract:<!DOCTYPE html><html><head> <title>jQuery的動畫效果</title> <script type="text/javascript" src="../jQuery/jquery-3.3.1.min.js"></script> <st

<!DOCTYPE html>

<html>

<head>

<title>jQuery的動畫效果</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>

<!-- 點擊右移按鈕 div右移 點擊停止按鈕當前效果停止 -->

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

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

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

</body>

</html>


Correcting teacher:查無此人Correction time:2019-04-16 09:57:15
Teacher's summary:完成的不錯。jq比js容易,多練習,可以代替js的常規(guī)操作,繼續(xù)加油。

Release Notes

Popular Entries