成人精品一区二区三区中文字幕-成人精品一区二区三区-成人精品一级毛片-成人精品亚洲-日本在线视频一区二区-日本在线视频免费

導航首頁 ? 技術教程 ? jQuery內容折疊效果插件用法實例分析(附demo源碼)
全站頭部文字 我要出現在這里
jQuery內容折疊效果插件用法實例分析(附demo源碼) 702 2024-03-06   

本文實例講述了jQuery內容折疊效果插件用法。分享給大家供大家參考,具體如下:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
  <title>jQuery Collapsible Fieldset</title>
  <script src="http://www.gimoo.net/t/1903/js/jquery.min.js"></script>
  <script language="javascript" type="text/javascript" src="http://www.gimoo.net/t/1903/js/jquery.coolfieldset.js"></script>
  <link rel="stylesheet" type="text/css"  />
</head>
<body>
  <h1>jQuery Collapsible Fieldset</h1>
  <br/>
  <fieldset id="fieldset1" class="coolfieldset">
    <legend>Default</legend>
    <div>
      <p>By default the <b>fieldset</b> is opened or expanded at start. Click on its <b>legend</b> to close or collapse it.</p>
      <p>The code is simply like below</p>
<pre>
$('#fieldset1').coolfieldset();
</pre>
    </div>
  </fieldset>
  <br/>
  <fieldset id="fieldset2" class="coolfieldset">
    <legend>Closed at start</legend>
    <div>
      <p>If we want the fieldset to be closed or collapsed at start, just add <b>{collapsed:true}</b> as the argument.</p>
<pre>
$('#fieldset2').coolfieldset({collapsed:true});
</pre>
    </div>
  </fieldset>
  <br/>
  <fieldset id="fieldset4" class="coolfieldset">
    <legend>Animation Speed</legend>
    <div>
      <p>You can also define the animation speed for the fieldset while collapsing or expanding by using <b>speed</b> option. Acceptable values are "<b>fast</b>", "<b>medium</b>", "<b>slow</b>", or a number in millisecond.</p>
<pre>
$('#fieldset3').coolfieldset({speed:"fast"});
</pre>
    </div>
  </fieldset>
  <br/>
  <fieldset id="fieldset5" class="coolfieldset">
    <legend>No Animation</legend>
    <div>
      <p>If you don't want to use animation effect, please use <b>animation</b> option and fill its value with <b>false</b>.</p>
<pre>
$('#fieldset4').coolfieldset({animation:false});
</pre>
    </div>
  </fieldset>
  <br/><br/>
  <fieldset id="fieldset3" class="coolfieldset">
    <legend>Notes :</legend>
    <div>
      <ul>
        <li>All content inside fieldset (except the <b>legend</b> tag) should be placed inside the <b>div</b> tag.</li>
        <li>Edit the <b>jquery.coolfieldset.css</b> to change the fieldset style.</li>
      </ul>
    </div>
  </fieldset>
  <script>
    $('#fieldset1, #fieldset3').coolfieldset();
    $('#fieldset2').coolfieldset({collapsed:true});
    $('#fieldset4').coolfieldset({speed:"fast"});
    $('#fieldset5').coolfieldset({animation:false});
  </script>
</body>
</html>

完整實例代碼點擊此處本站下載。

更多關于jQuery相關內容感興趣的讀者可查看本站專題:《jQuery切換特效與技巧總結》、《jQuery拖拽特效與技巧總結》、《jQuery擴展技巧總結》、《jQuery常見經典特效匯總》、《jQuery動畫與特效用法總結》、《jquery選擇器用法總結》及《jQuery常用插件及用法總結》

希望本文所述對大家jQuery程序設計有所幫助。



主站蜘蛛池模板: 小松未可子| 梦想建筑师泰国百合剧| 张振铎| 唐砖演员表| 瑜伽焰口全集 简体字| 男同视频在线| 邯郸恋家网| 木村多江| 游泳池play高h| 误判电影什么时候上映| 低糖食物一览表| 妈妈的朋友欧美| 地缚少年花子君第一季免费观看| 龚婉怡| 最新电影在线| 哗鬼住正隔篱| 武装少女免费观看| 美少女战士变身| 破冰 电影| 你在想什么| 艳妇乳肉豪妇荡乳ⅹxxo电影| 包头电视台| 零下100度| 碑文格式范例 墓碑图片| 《同志亦凡人》| 乙亥北行日记| 电影交换| 北国之恋| kiss the rain钢琴谱| 市川实日子| 赵汉善| 只园| 暗夜幕后在线观看完整版| 命运的逆转| 饶太郎| 邓伦是石家庄哪里的| 豪乳| 好一个中国大舞台简谱| 一路狂奔| 海洋之恋 特别篇 电影| 时来运转电影|

!!!站長長期在線接!!!

網站、小程序:定制開發/二次開發/仿制開發等

各種疑難雜癥解決/定制接口/定制采集等

站長微信:lxwl520520

站長QQ:1737366103