基于jquery css3實現嵌套式手風琴特效



30 116 39



特效描述:基于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

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

湖北30选5开奖结果走势图表