zoukankan      html  css  js  c++  java
  • jQuery动画

    引用:

    jQuery 动画的问题

    许多 jQuery 函数涉及动画。这些函数也许会将 speedduration 作为可选参数。

    例子:$("p").hide("slow")

    speedduration 参数可以设置许多不同的值,比如 "slow", "fast", "normal" 或毫秒。

    实例

    $("button").click(function(){
    $("p").hide(1000);
    });
    
    -----------------------------------------------
    <html>
    <head>
    <script type="text/javascript" src="/jquery/jquery.js"></script>
    <script type="text/javascript">
    $(document).ready(function(){
      $("button").click(function(){
      $("p").hide(1000);
      });
    });
    </script>
    </head>
    <body>
    <button type="button">隐藏</button>
    <p>This is a paragraph with little content.</p>
    <p>This is another small paragraph.</p>
    </body>
    </html>
    
  • 相关阅读:
    tensorflow学习笔记13
    Java——内部类
    Java——枚举
    Java——代码块
    Java——static
    Java——接口
    Java——final
    Java——权限修饰符
    Java——多态
    Java——抽象类
  • 原文地址:https://www.cnblogs.com/sode/p/2111969.html
Copyright © 2011-2022 走看看