利用jQuery实现网站导航悬停下拉菜单代码



15 58 20



特效描述:利用jQuery实现 网站导航 悬停下拉 菜单代码,利用jQuery实现网站导航悬停下拉菜单代码

代码结构

1. 引入CSS

<link type="text/css" rel="stylesheet" href="css/common.css">
<link type="text/css" rel="stylesheet" href="css/style.css">

2. 引入JS

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

3. HTML代码

<div class="wrapper">
	<div class="header">
		<div class="nav">
			<ul class="menu">
				<li class="li_2018 current">
					<a href="#" class="current">首页</a></li>
				<li class="li_2018">
					<a class="bind_menu_a" href="#" data-layerid="layer1">公司金融</a>
				</li>
				<li class="li_2018">
					<a class="bind_menu_a" href="#" data-layerid="layer2">公司金融</a>
				</li>
				<li class="li_2018">
					<a class="bind_menu_a" href="#" data-layerid="layer3">公司金融</a>
				</li>
				<li class="li_2018">
					<a class="bind_menu_a" href="#" data-layerid="layer4">公司金融</a>
				</li>
				<li class="li_2018">
					<a class="bind_menu_a" href="#" data-layerid="layer5">公司金融</a>
				</li>
				<li class="li_2018">
					<a class="bind_menu_a" href="#" data-layerid="layer6">公司金融</a>
				</li>
				<li class="li_2018">
					<a class="bind_menu_a" href="#" data-layerid="layer7">公司金融</a>
				</li>
			</ul>
			<div class="sub_menu bind_menu_a" id="layer1" data-layerid="layer1" style="display: none;">
				<i></i>
				<div class="sub_area clearfix">
					<ul class="sub_nav list">
						<li class="li_2018"><a href="">公告信息1</a></li>
					</ul>
					<ul class="sub_nav list">
						<li class="li_2018"><a href="">公告信息1</a></li>
					</ul>
					<ul class="sub_nav list sub_ad">
						<li class="li_2018"><a title="" alt="" href=""><img src="static/W020130317408372503732.gif" width="190" height="60"></a></li>
					</ul>
				</div>
			</div>
			<div class="sub_menu bind_menu_a" id="layer2" data-layerid="layer2" style="display: none;">
				<i></i>
				<div class="sub_area clearfix">
					<ul class="sub_nav list">
						<li class="li_2018"><a href="">公告信息2</a></li>
					</ul>
					<ul class="sub_nav list">
						<li class="li_2018"><a href="">公告信息2</a></li>
					</ul>
					<ul class="sub_nav list sub_ad">
						<li class="li_2018"><a title="" alt="" href=""><img src="static/W020130317408372503732.gif" width="190" height="60"></a></li>
					</ul>
				</div>
			</div>
			<div class="sub_menu bind_menu_a" id="layer3" data-layerid="layer3" style="display: none;">
				<i></i>
				<div class="sub_area clearfix">
					<ul class="sub_nav list">
						<li class="li_2018"><a href="">公告信息3</a></li>
					</ul>
					<ul class="sub_nav list">
						<li class="li_2018"><a href="">公告信息3</a></li>
					</ul>
					<ul class="sub_nav list sub_ad">
						<li class="li_2018"><a title="" alt="" href=""><img src="static/W020130317408372503732.gif" width="190" height="60"></a></li>
					</ul>
				</div>
			</div>
			<div class="sub_menu bind_menu_a" id="layer4" data-layerid="layer4" style="display: none;">
				<i></i>
				<div class="sub_area clearfix">
					<ul class="sub_nav list">
						<li class="li_2018"><a href="">公告信息4</a></li>
					</ul>
					<ul class="sub_nav list">
						<li class="li_2018"><a href="">公告信息4</a></li>
					</ul>
					<ul class="sub_nav list sub_ad">
						<li class="li_2018"><a title="" alt="" href=""><img src="static/W020130317408372503732.gif" width="190" height="60"></a></li>
					</ul>
				</div>
			</div>
			<div class="sub_menu bind_menu_a" id="layer5" data-layerid="layer5" style="display: none;">
				<i></i>
				<div class="sub_area clearfix">
					<ul class="sub_nav list">
						<li class="li_2018"><a href="">公告信息5</a></li>
					</ul>
					<ul class="sub_nav list">
						<li class="li_2018"><a href="">公告信息5</a></li>
					</ul>
					<ul class="sub_nav list sub_ad">
						<li class="li_2018"><a title="" alt="" href=""><img src="static/W020130317408372503732.gif" width="190" height="60"></a></li>
					</ul>
				</div>
			</div>
			<div class="sub_menu bind_menu_a" id="layer6" data-layerid="layer6" style="display: none;">
				<i></i>
				<div class="sub_area clearfix">
					<ul class="sub_nav list">
						<li class="li_2018"><a href="">公告信息6</a></li>
					</ul>
					<ul class="sub_nav list">
						<li class="li_2018"><a href="">公告信息6</a></li>
					</ul>
					<ul class="sub_nav list sub_ad">
						<li class="li_2018"><a title="" alt="" href=""><img src="static/W020130317408372503732.gif" width="190" height="60"></a></li>
					</ul>
				</div>
			</div>
			<div class="sub_menu bind_menu_a" id="layer7" data-layerid="layer7" style="display: none;">
				<i></i>
				<div class="sub_area clearfix">
					<ul class="sub_nav list">
						<li class="li_2018"><a href="">公告信息7</a></li>
					</ul>
					<ul class="sub_nav list">
						<li class="li_2018"><a href="">公告信息7</a></li>
					</ul>
					<ul class="sub_nav list sub_ad">
						<li class="li_2018"><a title="" alt="" href=""><img src="static/W020130317408372503732.gif" width="190" height="60"></a></li>
					</ul>
				</div>
			</div>
		</div>
	</div>
</div>
<div style="text-align:center;margin:50px 0; font:normal 14px/24px 'MicroSoft YaHei';">
</div>



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


热门标签: 滚动导航菜单 滚动菜单 滚动导航 滑动导航菜单 滑动导航 滑动菜单 浮动菜单 浮动导航 导航切换 菜单切换 右键菜单 收缩菜单 收缩导航 h5动画导航 h5动画菜单 html5动画导航 html5动画菜单 flash导航菜单 flash导航条 flash导航 flash菜单 flash下拉菜单 flash下拉导航菜单 导航菜单 导航条 菜单栏 导航栏 分类导航 响应式导航条 响应式导航 下拉列表 下拉菜单 下拉导航 下拉导航菜单 下拉菜单导航 响应式下拉菜单

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

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

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