多多色-多人伦交性欧美在线观看-多人伦精品一区二区三区视频-多色视频-免费黄色视屏网站-免费黄色在线

中國最全IT社區平臺 聯系我們 | 收藏本站
阿里云優惠2

jqueryui教程

jQuery UI 教程

jQuery UI 主題

jQuery UI 部件庫

jQuery UI 參考手冊

jQuery UI 實例

jQuery UI 實例 – 隱藏(Hide)

閱讀 (2366)

jQuery UI 實例 - 隱藏(Hide)

使用自定義效果來隱藏匹配的元素。

如需了解更多有關 .hide() 方法的細節,請查看 API 文檔 .hide()

.hide() 演示

點擊按鈕預覽特效。

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>jQuery UI 特效 - .hide() 演示</title>
  <link rel="stylesheet" href="/s//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
  <script src="/upload/help///code.jquery.com/jquery-1.9.1.js"></script>
  <script src="/upload/help///code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
  <link rel="stylesheet" >
  <style>
  .toggler { width: 500px; height: 200px; }
  #button { padding: .5em 1em; text-decoration: none; }
  #effect { width: 240px; height: 135px; padding: 0.4em; position: relative; }
  #effect h3 { margin: 0; padding: 0.4em; text-align: center; }
  </style>
  <script>
  $(function() {
    // 運行當前選中的特效
    function runEffect() {
      // 從中獲取特效類型
      var selectedEffect = $( "#effectTypes" ).val();
 
      // 大多數的特效類型默認不需要傳遞選項
      var options = {};
      // 一些特效帶有必需的參數
      if ( selectedEffect === "scale" ) {
        options = { percent: 0 };
      } else if ( selectedEffect === "size" ) {
        options = { to: { width: 200, height: 60 } };
      }
 
      // 運行特效
      $( "#effect" ).hide( selectedEffect, options, 1000, callback );
    };
 
    // 回調函數
    function callback() {
      setTimeout(function() {
        $( "#effect" ).removeAttr( "style" ).hide().fadeIn();
      }, 1000 );
    };
 
    // 根據選擇菜單值設置特效
    $( "#button" ).click(function() {
      runEffect();
      return false;
    });
  });
  </script>
</head>
<body>
 
<div class="toggler">
  <div id="effect" class="ui-widget-content ui-corner-all">
    <h3 class="ui-widget-header ui-corner-all">隱藏(Hide)</h3>
    <p>
      Etiam libero neque, luctus a, eleifend nec, semper at, lorem. Sed pede. Nulla lorem metus, adipiscing ut, luctus sed, hendrerit vitae, mi.
    </p>
  </div>
</div>
 
<select name="effects" id="effectTypes">
  <option value="blind">百葉窗特效(Blind Effect)</option>
  <option value="bounce">反彈特效(Bounce Effect)</option>
  <option value="clip">剪輯特效(Clip Effect)</option>
  <option value="drop">降落特效(Drop Effect)</option>
  <option value="explode">爆炸特效(Explode Effect)</option>
  <option value="fold">折疊特效(Fold Effect)</option>
  <option value="highlight">突出特效(Highlight Effect)</option>
  <option value="puff">膨脹特效(Puff Effect)</option>
  <option value="pulsate">跳動特效(Pulsate Effect)</option>
  <option value="scale">縮放特效(Scale Effect)</option>
  <option value="shake">震動特效(Shake Effect)</option>
  <option value="size">尺寸特效(Size Effect)</option>
  <option value="slide">滑動特效(Slide Effect)</option>
</select>
 
<a href="#" id="button" class="ui-state-default ui-corner-all">運行特效</a>
 
 
</body>
</html>

關閉
程序員人生
主站蜘蛛池模板: 日本不卡在线一区二区三区视频 | 一级一级毛片看看 | 欧美最猛黑人xxxx黑人 | 91麻豆精品国产综合久久久 | h视频在线免费 | 欧美性受xxxx黑人xyx | 日韩五月 | 中文字幕一区二区三区永久 | 国产精品第1页在线播放 | 精品一区二区影院在线 | 欧美人xxxx| 国内精品视频在线观看 | 日韩一级欧美一级在线观看 | 一区二区不卡视频 | 性的小视频在线观看免费 | 黄色的视频网站在线观看 | 国产亚洲精品自在线观看 | 亚洲免费网站 | 亚洲 欧美 日韩在线 | 日韩视频一区 | 法国18sexxxx性xxx | 波多野结衣 一区二区 | 国产一区二区三区在线观看精品 | 日本免费网站视频www区 | 中文字幕第6页 | 欧美激情亚洲一区中文字幕 | 一级作爱视频 | 中文字幕第3页 | 国产日韩欧美一区二区三区在线 | 国产午夜精品免费一二区 | 欧美日韩亚洲国产一区二区三区 | 午夜影院免费观看 | 日本免费精品 | 中文字幕一区二区三区免费看 | 日本高清中文字幕一区二区三区 | 午夜小视频男女在线观看 | 高清视频 一区二区三区四区 | 永久在线观看视频 | 欧洲亚洲一区二区三区 | 国产精品无码久久久久 | 成人无遮挡免费网站视频在线观看 |