利用jQuery实现手风琴多级下拉菜单代码



46 182 61



特效描述:利用jQuery实现 手风琴 多级下拉 菜单代码,利用jQuery实现手风琴多级下拉菜单代码

代码结构

1. 引入CSS

<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/style.css">

2. 引入JS

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

3. HTML代码

<ul class="cd-accordion-menu animated">
	<li class="has-children">
		<input type="checkbox" name ="group-1" id="group-1" checked>
		<label for="group-1">Group 1</label>
		<ul>
			<li class="has-children">
				<input type="checkbox" name ="sub-group-1" id="sub-group-1">
				<label for="sub-group-1">Sub Group 1</label>
				<ul>
					<li><a href="#0">Image</a></li>
					<li><a href="#0">Image</a></li>
					<li><a href="#0">Image</a></li>
				</ul>
			</li>
			<li class="has-children">
				<input type="checkbox" name ="sub-group-2" id="sub-group-2">
				<label for="sub-group-2">Sub Group 2</label>
				<ul>
					<li class="has-children">
						<input type="checkbox" name ="sub-group-level-3" id="sub-group-level-3">
						<label for="sub-group-level-3">Sub Group Level 3</label>
						<ul>
							<li><a href="#0">Image</a></li>
							<li><a href="#0">Image</a></li>
						</ul>
					</li>
					<li><a href="#0">Image</a></li>
				</ul>
			</li>
			<li><a href="#0">Image</a></li>
			<li><a href="#0">Image</a></li>
		</ul>
	</li>
	<li class="has-children">
		<input type="checkbox" name ="group-2" id="group-2">
		<label for="group-2">Group 2</label>
		<ul>
			<li><a href="#0">Image</a></li>
			<li><a href="#0">Image</a></li>
		</ul>
	</li>
	<li class="has-children">
		<input type="checkbox" name ="group-3" id="group-3">
		<label for="group-3">Group 3</label>
		<ul>
			<li><a href="#0">Image</a></li>
			<li><a href="#0">Image</a></li>
		</ul>
	</li>
	<li class="has-children">
		<input type="checkbox" name ="group-4" id="group-4">
		<label for="group-4">Group 4</label>
		<ul>
			<li class="has-children">
				<input type="checkbox" name ="sub-group-3" id="sub-group-3">
				<label for="sub-group-3">Sub Group 3</label>
				<ul>
					<li><a href="#0">Image</a></li>
					<li><a href="#0">Image</a></li>
				</ul>
			</li>
			<li><a href="#0">Image</a></li>
			<li><a href="#0">Image</a></li>
		</ul>
	</li>
</ul>
<div style="text-align:center;margin:50px 0; font:normal 14px/24px 'MicroSoft YaHei';">
</div>



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


热门标签: 滚动导航菜单 滑动导航菜单 浮动导航菜单 导航切换 右键菜单 收缩导航菜单 html5动画导航菜单 flash导航菜单 滚动切换 滑动选项卡切换 选项卡切换 滑动手风琴 导航菜单导航条 二级导航菜单 下拉导航菜单 手风琴

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

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

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