利用jQuery实现Akordeon可折叠手风琴插件



32 127 43



特效描述:利用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

加群请备注:从官网了解到