PHP:ftp_pasv()的用法_FTP函數
889
2023-12-17
本文實例講述了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程序設計有所幫助。
#免責聲明#
本站[綠夏技術導航]提供的一切軟件、教程和內容信息僅限用于學習和研究目的;不得將上述內容用于商業或者非法用途,否則,一切后果請用戶自負。本站信息來自網絡收集整理,版權爭議與本站無關。您必須在下載后的24個小時之內,從您的電腦或手機中徹底刪除上述內容。如果您喜歡該程序或內容,請支持正版,購買注冊,得到更好的正版服務。我們非常重視版權問題,如有侵權請郵件[admin@lxwl520.com]與我們聯系進行刪除處理。敬請諒解!