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



如需定制开发(网站开发、二次开发)在线咨询,请点击>> QQ:753511799

73 291 98



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



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


热门标签: 二级导航菜单 下拉导航菜单 竖直导航菜单 图标导航菜单 固定导航菜单 侧边导航菜单 树形导航菜单 网址导航菜单 导航菜单插件 文字导航菜单 滚动导航菜单 滑动导航菜单 浮动导航菜单 导航切换 右键菜单 收缩导航菜单 html5动画导航菜单 flash导航菜单 导航菜单导航条

×
×
51前端

注册

×
绑定手机

请绑定手机号,在继续操作

×
单次下载支付

应付金额:279

支付完成后,回到下载页面,在进行下载

官方QQ群
意见反馈
qq群

扫描上面二维码加微信群

官方QQ群

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

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