利用jQuery實現Akordeon可折疊手風琴插件



29 113 38



特效描述:利用jQuery實現 Akordeon 可折疊手風琴,利用jQuery實現Akordeon可折疊手風琴插件

代碼結構

1. 引入CSS

<link href="css/jquery.akordeon.css" rel="stylesheet" type="text/css" />
<link href="css/demo.css" rel="stylesheet" type="text/css" />

2. 引入JS

<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/jquery.akordeon.js" type="text/javascript"></script>

3. HTML代碼

    <div id="demo-wrapper">
        <div class="akordeon" id="buttons">
            <div class="akordeon-item expanded">
                <div class="akordeon-item-head">
                    <div class="akordeon-item-head-container">
                        <div class="akordeon-heading">
                            SOUPS
                        </div>
                    </div>
                </div>
                <div class="akordeon-item-body">
                    <div class="akordeon-item-content">
                        <p>
                            <ul>
                                <li>
                                    <h6>
                                        Vegetable Consomme Light</h6>
                                    <p>
                                        Clear Soup Made With Seasonal Vegetable and Flavoured With Clashi And Rice Noodles</p>
                                </li>
                                <li>
                                    <h6>
                                        Red Pepper and Tomato Soup</h6>
                                    <p>
                                        An Intensely full flavored soup with herbs and crème fraiche</p>
                                </li>
                                <li>
                                    <h6>
                                        Seafood Chowder Assortment of shrimp</h6>
                                    <p>
                                        Squid and fish in a classic New England bisque</p>
                                </li>
                            </ul>
                        </p>
                    </div>
                </div>
            </div>
            <div class="akordeon-item">
                <div class="akordeon-item-head">
                    <div class="akordeon-item-head-container">
                        <div class="akordeon-heading">
                            Second Panel
                        </div>
                    </div>
                </div>
                <div class="akordeon-item-body">
                    <div class="akordeon-item-content">
                        <a href="http://51qianduan.com/">
                            <img id="social-media-share" width="150px" height="100px" style="border: none; float: left;
                                margin-right: 10px;" src="images/jQuery-minimal-social-media-share-plugin.jpg" /></a>
                        Donec tortor velit, volutpat id adipiscing ut, tincidunt vitae mi. Duis imperdiet
                        egestas fermentum. Sed a leo mauris. Vestibulum metus libero, condimentum commodo
                        cursus sit amet, accumsan hendrerit eros. Suspendisse orci magna, eleifend at fermentum
                        id, condimentum faucibus libero. Integer tempus fermentum odio, in congue sem lacinia
                        pharetra. Phasellus pretium convallis eros, vitae pulvinar libero elementum non.
                        Donec et hendrerit massa. Integer ac aliquet tellus. Quisque sollicitudin augue
                        eget justo convallis vel consequat lacus bibendum. Integer laoreet nunc non arcu
                        lacinia malesuada at sed elit.
                    </div>
                </div>
            </div>
            <div class="akordeon-item">
                <div class="akordeon-item-head">
                    <div class="akordeon-item-head-container">
                        <div class="akordeon-heading">
                            Third Panel
                        </div>
                    </div>
                </div>
                <div class="akordeon-item-body">
                    <div class="akordeon-item-content">
                        <p>
                            Nullam congue erat id felis tristique tincidunt. In tincidunt mi sit amet sapien
                            ornare facilisis. Suspendisse lacus elit, consequat non rutrum vel, vestibulum quis
                            libero. In elementum laoreet eros, faucibus rhoncus felis tempor eget. Maecenas
                            urna arcu, adipiscing vitae tempus id, gravida eu odio. Donec vestibulum feugiat
                            commodo. Duis quis ante massa.</p>
                        <p>
                            Nullam molestie, ligula quis tincidunt tincidunt, eros ipsum scelerisque lorem,
                            commodo fermentum tellus ligula sit amet sem. Phasellus quis nunc id velit egestas
                            malesuada nec eu nunc. Fusce nec metus vitae metus mattis volutpat.</p>
                    </div>
                </div>
            </div>
        </div>
        <div class="akordeon" id="button-less">
            <div class="akordeon-item expanded">
                <div class="akordeon-item-head">
                    <div class="akordeon-item-head-container">
                        <div class="akordeon-heading">
                            First Panel
                        </div>
                    </div>
                </div>
                <div class="akordeon-item-body">
                    <div class="akordeon-item-content">
                        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam non nibh nec sem
                        placerat ornare. Duis venenatis, mi a pretium laoreet, odio justo dapibus tortor,
                        vel suscipit ante dolor vel ante. Ut at eleifend nunc. In velit libero, sagittis
                        non imperdiet sed, malesuada et libero. Phasellus quis accumsan urna. Ut cursus
                        condimentum quam, in eleifend magna tempus a. Curabitur dui ipsum, placerat sed
                        porttitor a, congue quis quam. Suspendisse at dolor massa. Curabitur eget elit dolor,
                        nec vulputate ipsum. Vestibulum sit amet metus id metus ullamcorper facilisis et
                        dignissim est. In lectus eros, scelerisque id accumsan id, bibendum eu dolor. Donec
                        sodales erat ut lectus rhoncus condimentum. Mauris eleifend scelerisque nulla eget
                        egestas.
                    </div>
                </div>
            </div>
            <div class="akordeon-item">
                <div class="akordeon-item-head">
                    <div class="akordeon-item-head-container">
                        <div class="akordeon-heading">
                            Second Panel
                        </div>
                    </div>
                </div>
                <div class="akordeon-item-body">
                    <div class="akordeon-item-content">
                        Donec tortor velit, volutpat id adipiscing ut, tincidunt vitae mi. Duis imperdiet
                        egestas fermentum. Sed a leo mauris. Vestibulum metus libero, condimentum commodo
                        cursus sit amet, accumsan hendrerit eros. Suspendisse orci magna, eleifend at fermentum
                        id, condimentum faucibus libero. Integer tempus fermentum odio, in congue sem lacinia
                        pharetra. Phasellus pretium convallis eros, vitae pulvinar libero elementum non.
                        Donec et hendrerit massa. Integer ac aliquet tellus. Quisque sollicitudin augue
                        eget justo convallis vel consequat lacus bibendum. Integer laoreet nunc non arcu
                        lacinia malesuada at sed elit.
                    </div>
                </div>
            </div>
            <div class="akordeon-item">
                <div class="akordeon-item-head">
                    <div class="akordeon-item-head-container">
                        <div class="akordeon-heading">
                            Third Panel
                        </div>
                    </div>
                </div>
                <div class="akordeon-item-body">
                    <div class="akordeon-item-content">
                        <p>
                            Nullam congue erat id felis tristique tincidunt. In tincidunt mi sit amet sapien
                            ornare facilisis. Suspendisse lacus elit, consequat non rutrum vel, vestibulum quis
                            libero. In elementum laoreet eros, faucibus rhoncus felis tempor eget. Maecenas
                            urna arcu, adipiscing vitae tempus id, gravida eu odio. Donec vestibulum feugiat
                            commodo. Duis quis ante massa.</p>
                        <p>
                            Nullam molestie, ligula quis tincidunt tincidunt, eros ipsum scelerisque lorem,
                            commodo fermentum tellus ligula sit amet sem. Phasellus quis nunc id velit egestas
                            malesuada nec eu nunc. Fusce nec metus vitae metus mattis volutpat.</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
<div style="text-align:center;clear:both">
</div>



用戶評論
大牛,別默默的看了,快登錄幫我點評一下吧!:)      登錄 | 注冊


熱門標簽: 圖片疊加 圖片層疊 圖片全屏 圖片淡出淡進 圖片淡出 圖片淡進 圖片延遲加載 圖片延遲 圖片加載 圖片翻轉 圖片旋轉 圖片放大鏡 頭像上傳 圖片上傳 圖片拖動 圖片拖拽 二維碼 帶縮略圖的幻燈片 圖片廣告 h5圖片動畫 h5圖標動畫 html5圖片動畫 html5圖標動畫 地圖 中國地圖 世界地圖 滾動切換 滾動條切換 滑動選項卡 滑動切換 圖片放大縮小 圖片縮放 圖片大小 圖片放大 圖片縮小 圖片變大 圖片變小 旋轉木馬 圖片旋轉木馬 文字旋轉木馬 旋轉木馬插件 圖片滾動 圖片滾動條 純圖片輪播 圖片輪播 圖片收縮展開 圖片收縮 圖片展開 圖片滑動 圖片滑塊 圖片切換 圖片選項卡 圖標選項卡 自動滾動圖片輪播 圖標導航 圖標菜單 選項卡切換 選項卡 切換 tab切換 頁面切換 選項卡插件 切換插件 背景切換 大圖切換 滑動手風琴 手風琴 水平手風琴 垂直手風琴 圖片手風琴 文字手風琴 手風琴插件 收縮展開 展開收縮 收縮 展開 圖表 圖片 圖片插件 頭像截圖 收縮菜單 收縮導航 文字切換 文字選項卡 手風琴 水平手風琴 垂直手風琴 圖片手風琴 文字手風琴 手風琴插件 圖片文字
×
×

注冊

官方QQ群

掃描上面二維碼加微信群

官方QQ群

jQuery/js討論群
群號:642649996
Css3+Html5討論群
群號:322131262

加群請備注:從官網了解到

老夫子电子