救命期末期末考试救命不知道是什么东西,大题

img


救命这什么,期末考试救命救命


<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <title>菜鸟教程(runoob.com)</title>
  <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js">
  </script>
  <script>
    $(document).ready(function () {
      // $("#btn1").click(function () {
        $("#box").animate({ width: "400px" },2000);
      // });
     
    });
  </script>
</head>

<body>

  <!-- <button id="btn1">使用动画放大高度</button> -->
  <div id="box" style="background:yellow;height:50px;width:0px;;">
  </div>

</body>

</html>

jquery animation动画效果
文档 https://www.runoob.com/jquery/eff-animate.html

这是Jquery的动画事件。意思就是给div添加动画效果。

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #box {
            background-color: darkcyan;
            height: 50px;
            width: 50px;
        }
    </style>
    <script src='https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js'></script>
</head>

<body>
    <div id="box"></div>
    <div onclick="clickEve()">点击</div>
</body>

<script>
    function clickEve() {
        $("#box").animate({
            height: "400px",
            width: '400px',
        }, 2000)
    }
</script>

</html>

这就是页面中的动画,没什么难度的,你对着来课件来做即可。

有遇到什么问题,我们可以交流交流。

dai