基于jquery css3实现嵌套式手风琴特效



33 131 44



特效描述:基于jquery css3实现 嵌套式 手风琴特效,基于jquery css3实现嵌套式手风琴特效

代码结构

1. 引入CSS

<link rel="stylesheet" type="text/css" href="css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="css/animation.css">
<link rel="stylesheet" type="text/css" href="font/titillium/stylesheet.css">
<link rel="stylesheet" type="text/css" href="font/exo-demibold/stylesheet.css">
<link rel="stylesheet" type="text/css" href="css/eli-style.css">
<link rel="stylesheet" type="text/css" href="css/font-awesome-ie7.min.css" />
<link rel="stylesheet" type="text/css" href="css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="css/animation.css">
<link rel="stylesheet" type="text/css" href="font/titillium/stylesheet.css">
<link rel="stylesheet" type="text/css" href="font/exo-demibold/stylesheet.css">
<link rel="stylesheet" type="text/css" href="css/eli-style.css">
<link rel="stylesheet" type="text/css" href="css/font-awesome-ie7.min.css" />

2. 引入JS

<script type="text/javascript" src="js/modernizr.custom.29473.js"></script>
<script type="text/javascript" src="js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="js/accordion-single.js"></script>
<script type="text/javascript" src="js/modernizr.custom.29473.js"></script>
<script type="text/javascript" src="js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="js/accordion-single.js"></script>

3. HTML代码

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title></title>
<meta name="viewport" content="width=device-width">
<!--[if IE 7]>
<![endif]-->
<!--[if lte IE 9]>
    <style type="text/css">
        .content{
			height: 240px;
        }
        .arc label{
        	border-bottom:1px solid #A3A3A3;
        }
	</style>
<![endif]-->
</head>
<body class="eli">
<!-- Live Preview -->
<div align="center" style="width:650px; margin:0 auto">
</div>
<section class="demo arc"> 
        <!-- Lable 1 -->
        <div>
                <input id="label-1" name="label" type="radio" checked/>
                <label for="label-1" id="item1" class="label-small">
                	<i class="label-icon-left icon-dashboard"></i>Label One<i class="label-icon-right1 icon-plus-sign"></i><i class="label-icon-right2 icon-minus-sign"></i>
                </label>
               <div class="content demo-preview">
                        <div class="cnt-wrapper">
                                <h3>Accordion Menu</h3>
                                <div class="sizes">
                                	<div class="size1">
                                        	<p>Size1</p>
                                        </div>
                                </div> <!-- /sizes -->
                                <div class="sizes">
                                        <div class="size2">
                                        	<p>Size2</p>
                                        </div>
                                        <div class="size2">
                                        	<p>Size2</p>
                                        </div>
                                </div> <!-- /sizes -->
                                <div class="sizes">
                                        <div class="size3">
                                        	<p>Size3</p>
                                        </div>
                                        <div class="size3">
                                        	<p>Size3</p>
                                        </div>
                                        <div class="size3">
                                        	<p>Size3</p>
                                        </div>
                                </div> <!-- /sizes -->
                                <div class="sizes">
                                       <div class="size4">
                                        	<p>Size4</p>
                                        </div>
                                        <div class="size4">
                                        	<p>Size4</p>
                                        </div>
                                        <div class="size4">
                                        	<p>Size4</p>
                                        </div>
                                        <div class="size4">
                                        	<p>Size4</p>
                                        </div>
                                </div> <!-- /sizes -->
                                <div class="sizes">
                                        <div class="size5">
                                        	<p>Size5</p>
                                        </div>
                                        <div class="size5">
                                        	<p>Size5</p>
                                        </div>
                                        <div class="size5">
                                        	<p>Size5</p>
                                        </div>
                                        <div class="size5">
                                        	<p>Size5</p>
                                        </div>
                                        <div class="size5">
                                        	<p>Size5</p>
                                        </div>
                                </div> <!-- /sizes -->
                                <div class="sizes">
                                        <div class="size6">
                                        	<p>Size6</p>
                                        </div>
                                        <div class="size6">
                                        	<p>Size6</p>
                                        </div>
                                        <div class="size6">
                                        	<p>Size6</p>
                                        </div>
                                        <div class="size6">
                                        	<p>Size6</p>
                                        </div>
                                        <div class="size6">
                                        	<p>Size6</p>
                                        </div>
                                        <div class="size6">
                                        	<p>Size6</p>
                                        </div>
                                        <div class="size6">
                                        	<p>Size6</p>
                                        </div>
                                        <div class="size6">
                                        	<p>Size6</p>
                                        </div>
                                        <div class="size6">
                                        	<p>Size6</p>
                                        </div>
                                        <div class="size6">
                                        	<p>Size6</p>
                                        </div>
                                </div> <!-- /sizes -->
                          </div> <!-- /cnt-wrapper -->     
                </div> <!-- /content -->
        </div>
        <!-- Lable 2 -->
        <div>
                <input id="label-2" name="label" type="radio"/>
                <label for="label-2" id="item2" class="label-small">
                	<i class="label-icon-left icon-leaf "></i>Label Two<i class="label-icon-right1 icon-plus-sign"></i><i class="label-icon-right2 icon-minus-sign"></i>
                </label>
               <div class="content cnt-scroll">
                       <div class="cnt-wrapper"> 
                                <div class="sizes">
                                        <div class="size3">
                                        	<h4>Text Center</h4>
                                                <p class="text-center">Web page backgrounds used to be commonplace, but they became unpopular once designers figured out that visitors to web pages didn’t want their eyes wrenched out by gaudy tiled background patterns.</p>
                                        </div>
                                         <div class="size3">
                                         	<h4>Text Right</h4>
                                                <p class="text-right">Web page backgrounds used to be commonplace, but they became unpopular once designers figured out that visitors to web pages didn’t want their eyes wrenched out by gaudy tiled background patterns.</p>
                                        </div>
                                         <div class="size3">
                                        	 <h4>Text Justify</h4>
                                                <p class="text-justify">Web page backgrounds used to be commonplace, but they became unpopular once designers figured out that visitors to web pages didn’t want their eyes wrenched out by gaudy tiled background patterns.</p>
                                        </div>
                        	</div> <!-- /sizes -->
                                <hr />
                                <div class="sizes">
                                	<div class="size1">
                                        	<h2>Large Paragraph</h2>
                                                <p class="p-large">Web page backgrounds used to be commonplace, but they became unpopular once designers figured out that visitors to web pages didn’t want their eyes wrenched out by gaudy tiled background patterns.</p>
                                        </div>
                                        <div class="size1">
                                        	<h4>Small Paragraph</h4>
                                                <p class="p-small">Web page backgrounds used to be <a href="#">commonplace, but they became</a> unpopular once designers figured out that visitors to web pages didn’t want their eyes wrenched out by gaudy tiled background patterns. With text being as hard to read on-screen as it is, it’s adding insult to injury to inflict some nasty paisley mosaic background (or worse) on the poor <a href="#">reader</a>, too.</p>
                                        </div>
                                </div> <!-- /sizes -->
                        </div> <!-- /cnt-wrapper -->
                </div> <!-- /content -->
        </div>
        <!-- Lable 3 -->
        <div>
                <input id="label-3" name="label" type="radio"/>
                <label for="label-3" id="item3" class="label-small">
                	<i class="label-icon-left icon-trophy "></i>Label Three<i class="label-icon-right1 icon-plus-sign"></i><i class="label-icon-right2 icon-minus-sign"></i>
                </label>
                <div class="content">
                	<div class="cnt-wrapper">
                                <div class="sizes">
                                        <div class="size1">
                                                <h3>Paragraph + Image</h3>
                                                <img src="images/thumb4.png" class="img-right border-radius3">
                                                <p>Web page backgrounds used to be <a href="#">commonplace, but they became</a> unpopular once designers figured out that visitors to web pages didn’t want their eyes wrenched out by gaudy tiled background patterns. With text being as hard to read on-screen as it is, it’s adding insult to injury to inflict some nasty paisley mosaic background (or worse) on the poor reader, too.</p>
                                        </div>
                                         <div class="size1">
                                                 <img src="images/thumb4.png" class="img-left border-radius1 box-shadow2">
                                                <p>Web page backgrounds used to be <a href="#">commonplace, but they became</a> unpopular once designers figured out that visitors to web pages didn’t want their eyes wrenched out by gaudy tiled background patterns. With text being as hard to read on-screen as it is, it’s adding insult to injury to inflict some nasty paisley mosaic background (or worse) on the poor reader, too.</p>
                                        </div>
                                </div> <!-- /sizes -->
                        </div> <!-- /cnt-wrapper -->
                </div> <!-- /content -->
        </div>
        <!-- Lable 4 -->
        <div>
                <input id="label-4" name="label" type="radio"/>
                <label for="label-4" id="item4" class="label-small">
                	<i class="label-icon-left icon-gift"></i>Label four<i class="label-icon-right1 icon-plus-sign"></i><i class="label-icon-right2 icon-minus-sign"></i>
                </label>
                <div class="content cnt-scroll">
                       <div class="cnt-wrapper"> 
                               <div class="size1"> 
                                        <h3>Button</h3>
                                        <div class="button-wrapper">
                                                <a href="#" class="button button-mini"><i class="icon-coffee"></i>mini</a> 
                                                <a href="#" class="button button-normal"><i class="icon-coffee"></i>normal</a> 
                                                <a href="#" class="button button-large"><i class="icon-coffee"></i>large</a>
                                        </div>
                                        <hr />
                                        <h3>Rounded corner buttons</h3>
                                       <div class="button-wrapper"> 
                                                <a href="#" class="button button-mini border-radius5 danger"><i class="icon-coffee"></i>button</a> 
                                                <a href="#" class="button button-normal border-radius5"><i class="icon-coffee"></i>button</a> 
                                                <a href="#" class="button button-large border-radius5"><i class="icon-coffee"></i>button</a>
                                        </div>
                                </div>
                                <hr />
                                <div class="sizes">
                                        <div class="size2">
                                                <h1>H1 Heading</h1>
                                                <h2>H2 Heading</h2>
                                                <h3>H3 Heading</h3>
                                                <h4>H4 Heading</h4> 
                                                <h5>H5 Heading</h5> 
                                                <h6>H6 Heading</h6> 
                                        </div>
                                        <div class="size2">
                                        	<div class="block border-radius1">
                                                	<span class="header"><i class="icon-coffee"></i>Block Heading</span>
                                                	Web page backgrounds used to be commonplace, but they became unpopular once designers figured out that visitors to web pages didn’t want their eyes wrenched out by gaudy tiled background patterns
                                                        <span class="footer">
                                                        	<a href="#" class="button button-mini">Read More...</a> 
                                                        </span>
                                                </div>
                                         </div>
                                </div> <!-- /sizes -->
                        </div> <!-- /cnt-wrapper -->
                </div> <!-- /content -->
        </div>
        <!-- Lable 5 -->
        <div>
                <input id="label-5" name="label" type="radio"/>
                <label for="label-5" id="item5"  class="label-small">
                	<i class="label-icon-left icon-question-sign "></i>Label Five<i class="icon-plus-sign label-icon-right1"></i><i class="icon-minus-sign label-icon-right2"></i>
                </label>
                <div class="content">
                       <div class="cnt-wrapper"> 
                               <div class="sizes">
                                       <div class="size2">
                                                <ul>
                                                        <li class="header">Header</li>
                                                        <li><a href="#"><i class="icon-ok"></i>List Level 1</a></li>
                                                        <li><i class="icon-ok"></i>List Level 1
                                                                <ul>
                                                                        <li><a href="#"><i class="icon-ok"></i>List Level 2</a></li>
                                                                        <li><a href="#"><i class="icon-ok"></i>List Level 2</a></li>
                                                                        <li><a href="#"><i class="icon-ok"></i>List Level 2</a></li>
                                                                </ul>
                                                        </li>
                                                        <li><a href="#"><i class="icon-ok"></i>List Level 1</a></li>
                                                        <li><a href="#"><i class="icon-ok"></i>List Level 1</a></li>
                                                        <li><a href="#"><i class="icon-ok"></i>List Level 1</a></li>
                                                </ul>
                                        </div>
                                        <div class="size2">
                                                <ul class="list-block box-shadow1">
                                                        <li class="header"><i class="icon-ok"></i>Header 1</li>
                                                        <li><a href="#"><i class="icon-ok"></i>list 1</a></li>
                                                        <li><a href="#"><i class="icon-ok"></i>list 1</a></li>
                                                        <li><a href="#"><i class="icon-ok"></i>list 1</a></li>
                                                        <li class="header"><i class="icon-ok"></i>Header 2</li>
                                                        <li><a href="#"><i class="icon-ok"></i>list 1</a></li>
                                                        <li><a href="#"><i class="icon-ok"></i>list 1</a></li>
                                                        <li><a href="#"><i class="icon-ok"></i>list 1</a></li>
                                                </ul>
                                        </div>
                                </div> <!-- /sizes -->
                        </div> <!-- /cnt-wrapper -->
                </div> <!-- /content -->
        </div>
</section>
</body>
</html>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 滑动 滑块 滑动门 触屏滑动 滑动插件 滑块插件 滚动切换 滚动条切换 滑动选项卡 滑动切换 选项卡切换 选项卡 切换 tab切换 页面切换 选项卡插件 切换插件 滑动手风琴 收缩展开 展开收缩 收缩 展开 收缩菜单 收缩导航 滑动选项卡 滑动切换 手风琴 水平手风琴 垂直手风琴 图片手风琴 文字手风琴 手风琴插件

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

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