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

jq向右移動(dòng)函數(shù),動(dòng)畫函數(shù),停止函數(shù)使用屬性.,

オリジナル 2019-06-25 19:38:52 291
サマリー: <!DOCTYPE html> <html> <head charset='utf-8'>  <title>jq淡入淡出效果!</title>  <script type="text/javascript" src="css/jquer

 <!DOCTYPE html>

 <html>

 <head charset='utf-8'>

  <title>jq淡入淡出效果!</title>

  <script type="text/javascript" src="css/jquery-3.4.1.min.js"></script>

  <style type="text/css">

  .box1{height: 200px;width: 200px;background:red;}

  .box2{height: 200px;width: 200px;background:red;position: absolute;}

  button{height: 40px;width: 200px;border:none;}

 

  </style>

 </head>

 <body>

  <script type="text/javascript">

  $(document).ready(function () {

  $('.box1').hide()

  $('.but1').click(function(){

  $('.box1').fadeIn(3000)

  $('p').animate({fontSize:'40px'},1500)

  $('.box2').animate({left:'400px'},1500)

  })

  // body...

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

  $('.box2').animate({left:'+500px'},3000)

  })

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

  $('.box2').stop()

  })

  })




  </script>

  <button class="but1">淡入</button>

  <div class="box1"></div>

  <p>jq當(dāng)中我們使用的是自定義動(dòng)畫效果@</p>

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

  <button id="rigth">向右移動(dòng)</button>

  <button id="stop">停止移動(dòng)</button>

 

 </body>

 </html>


添削の先生:查無此人添削時(shí)間:2019-06-26 14:52:32
先生のまとめ:完成的不錯(cuò)。每行js和jq語句結(jié)束增加;號。繼續(xù)加油

手記を発表する

人気のある見出し語