直接使用代码


图片素材


css代码

     <style>  
* {
	margin: 0;
	padding: 0;
	font-family: "microsoft yahei";
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
}

.nav {
	width: 100%;
	height: 48px;
	background: #3aaaf8;
	position: relative;
}

.nav ul {
	width: 1200px;
	position: relative;
	margin: 0 auto;
}

.nav ul li {
	position: relative;
	display: inline-block;
	float: left;
}

.nav ul li:first-child {
	width: 220px;
	cursor: pointer;
}

.nav ul li label {
	display: block;
	padding-left: 55px;
	background: #128ee3;
	position: relative;
	height: 48px;
	line-height: 48px;
	color: #fff;
}

.nav ul li label i {
	width: 24px;
	height: 24px;
	background: url(http://www.bootfastui.cn/img/2020/200424-2/nav_icon.png) -24px -82px no-repeat;
	display: block;
	position: absolute;
	top: 13px;
	left: 20px;
}

.nav ul li a {
	display: block;
	padding: 0 35px;
	line-height: 48px;
	color: #fff;
	font-size: 18px;
}

.nav ul li a.current {
	background: #5dc071;
}

.nav ul li a:hover {
	background: #5dc071;
}

.nav ul li:first-child:hover .side {
	display: block;
}

.nav .side {
	display: none;
	position: absolute;
	padding: 10px 0 0 20px;
	top: 48px;
	left: 0;
	z-index: 3;
	width: 220px;
	height: 360px;
	background: #fff;
	border: 1px solid #e2e2e2;
	border-top: none;
	border-bottom: 1px solid #fff;
	border-left: 1px solid #fff;
	border-right: 1px solid #fff;
	background-color: rgba(255, 255, 255, .95);
	box-sizing: border-box;
}

.nav .side li {
	width: 200px;
}

.nav .side li a {
	color: #333;
	height: 40px;
	line-height: 40px;
	padding: 8px 0 8px 0;
	display: block;
	font-size: 16px;
}

.nav .side li a:hover {
	background: none;
	color: #0085cd;
}

.nav .side li a i {
	transition: all 0.3s ease 0s;
}

.nav .side li a i.side_t {
	height: 22px;
	width: 22px;
	display: inline-block;
	background: url(http://www.bootfastui.cn/img/2020/200424-2/img_public.png) no-repeat;
	vertical-align: middle;
	margin-right: 30px;
}

.nav .side li a i.icon-one {
	background-position: 0 -40px;
}

.nav .side li a i.icon-two {
	background-position: -160px -40px;
}

.nav .side li a i.icon-three {
	background-position: -120px -40px;
}

.nav .side li a i.icon-four {
	background-position: -240px -40px;
}

.nav .side li a i.icon-five {
	background-position: -440px -40px;
}

.nav .side li a i.icon-six {
	background-position: -40px -40px;
}

.nav .side li:hover .side_main {
	display: block;
	z-index: 999;
}

.nav .side .side_main {
	display: none;
	width: 300px;
	background: #FFFFFF;
	position: absolute;
	left: 198px;
	top: -10px;
	box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
	border: 1px #cecece solid;
	z-index: 7;
}

.nav .side .side_main dl {
	margin: 20px;
	padding: 0;
}

.nav .side .side_main dl dt {
	font-size: 18px;
	margin-bottom: 10px;
	color: #0173b2;
	font-weight: bold;
}

.nav .side .side_main dl dd {
	margin-bottom: 10px;
	display: inline-block;
}

.nav .side .side_main dl dd a {
	display: block;
	color: #777;
	font-size: 12px;
	padding: 0;
	height: auto;
	line-height: 1.5;
}

.nav .side .side_main dl dd a strong {
	font-size: 14px;
	display: block;
	color: #555;
	font-weight: normal;
}

i.icon-hot,
i.icon-new {
	display: inline-block;
	height: 9px;
	width: 24px;
	background: url(http://www.bootfastui.cn/img/2020/200424-2/img_public.png) no-repeat;
	vertical-align: middle;
}

i.icon-hot {
	background-position: 0 -240px;
}

i.icon-new {
	background-position: -40px -240px;
}

.nav .side .side_main dl dd a span {
	color: #999;
}

.nav .side .side_main dl dd a:hover {
	background: none;
}

.nav .side .side_main dl dd a:hover strong {
	color: #40adf5;
}

.nav .side .side_main dl dd a:hover span {
	color: #40adf5;
}

.nav .side li a:hover i {
	margin-left: 10px;
}

.slider {
	position: relative;
	height: 360px;
	overflow: hidden;
        float:left;width:100%
}

.slideBox .hd {
	height: 10px;
	overflow: hidden;
	position: absolute;
	left: 50%;
	bottom: 20px;
	transform: translateX(-50%);
	z-index: 1;
}

.slideBox .hd ul li {
	float: left;
	margin-right: 5px;
	width: 30px;
	height: 10px;
	line-height: 14px;
	text-align: center;
	background: #fff;
	cursor: pointer;
}

.slideBox .hd ul li.on {
	background: #00a2ff;
	color: #fff;
}
</style>

HTML+JS代码

       <div style="height: 50px;">
			<!--高度填充可删除-->
		</div>
		<!--导航部分-->
		<div class="nav">
			<ul>
				<li>
					<label><i></i>全部保险产品</label>
					<ul class="side" style="display:block;">
						<li>
							<a href=""><i class="side_t icon-one"></i>健康保险</a>
							<div class="side_main">
								<dl>
									<dt><strong>健康保险</strong></dt>
									<dd>
										<a href="">
											<strong>安享康健2018重疾保障 <i class="icon-hot"></i></strong>
											<span>最高赔付116万,全新升级第7代</span>
										</a>
									</dd>
									<dd>
										<a href=""><strong>悦享康健重疾保障</strong> <span>130种疾病+最高赔付76.8万+最长保至100岁</span> </a>
									</dd>

									<dd>
										<a href=""><strong>新乐康无忧住院津贴</strong> <span>大小住院手术都能补贴,拿完津贴还能返保费</span> </a>
									</dd>
									<dd>
										<a href=""><strong>老友安心防癌保险</strong> <span>45-70岁专享,最高40万癌症关爱</span> </a>
									</dd>
								</dl>
							</div>
						</li>
						<li>
							<a href=""><i class="side_t icon-two"></i>儿童保险</a>
							<div class="side_main">
								<dl>
									<dt><strong>儿童保险</strong></dt>
									<dd>
										<a href=""><strong>宝贝启航2018综合保障 <i class="icon-hot"></i></strong> <span>教育金+重疾+住院+意外医疗</span> </a>
									</dd>
									<dd>
										<a href=""><strong>珍爱未来教育金</strong> <span>教育深造连续8年领钱</span> </a>
									</dd>
									<dd>
										<a href=""><strong>百万守护(少儿)意外险</strong> <span>14万意外医疗+154万意外保障+140%返还</span> </a>
									</dd>
								</dl>
							</div>
						</li>
						<li>
							<a href=""><i class="side_t icon-three"></i>意外保险</a>
							<div class="side_main">
								<dl>
									<dt><strong>意外保险</strong></dt>
									<dd>
										<a href=""><strong>百万守护(少儿)意外险<i class="icon-hot"></i></strong> <span>14万意外医疗+154万意外保障+140%返还</span> </a>
									</dd>
									<dd>
										<a href=""><strong>百万守护(成人)意外险</strong> <span>高达300万意外保障+20万意外医疗</span> </a>
									</dd>
									<dd>
										<a href=""><strong>顺心天天一年期综合意外保障<i class="icon-new"></i></strong> <span>每天只需1元起</span> </a>
									</dd>
								</dl>
							</div>
						</li>
						<li>
							<a href=""><i class="side_t icon-four"></i>年金保险</a>
							<div class="side_main">
								<dl>
									<dt><strong>年金保险</strong></dt>
									<dd>
										<a href=""><strong>招盈六号年金(分红型)</strong><span>养老无忧,幸福传承</span> </a>
									</dd>
									<dd>
										<a href=""><strong>筑福金生年金(非分红型)<i class="icon-new"></i></strong> <span>终身领取,安享退休</span> </a>
									</dd>
								</dl>
							</div>
						</li>
						<li>
							<a href=""><i class="side_t icon-five"></i>银行保险</a>
							<div class="side_main">
								<dl>
									<dt><strong>银行保险</strong></dt>
									<dd>
										<a href=""><strong>自在人生终身年金</strong><span>终身领取,锁定未来</span> </a>
									</dd>
									<dd>
										<a href=""><strong>心悦人生综合保险</strong><span>45种重大疾病+意外保障+满期保险金</span> </a>
									</dd>
									<dd>
										<a href=""><strong>珍爱一生百分百重疾保障</strong><span>特定疾病多重赔付,保至100岁</span></a>
									</dd>
								</dl>
							</div>
						</li>
						<li>
							<a href=""><i class="side_t icon-six"></i>高端医疗</a>
							<div class="side_main">
								<dl>
									<dt><strong>高端医疗</strong></dt>
									<dd>
										<a href=""><strong>醇享人生个人高端医疗保险<i class="icon-new"></i></strong><span>醇享健康,尊贵人生</span></a>
									</dd>
								</dl>
							</div>
						</li>
					</ul>
				</li>
				<li>
					<a href="" class="current">首页</a>
				</li>
				<li>
					<a href="">个人与家庭保险</a>
				</li>
				<li>
					<a href="">团体保险</a>
				</li>
				<li>
					<a href="">客户服务</a>
				</li>
				<li>
					<a href="">关于我们</a>
				</li>
			</ul>
		</div>
		<!--导航结束-->

		<!--轮播部分-->
		<div class="slider">
			<div id="slideBox" class="slideBox">
				<div class="hd">
					<ul>
						<li class=""></li>
						<li class=""></li>
						<li class=""></li>
						<li class=""></li>
						<li class="on"></li>
						<li class=""></li>
					</ul>
				</div>
				<div class="bd">
					<div class="tempWrap" style="overflow:hidden; position:relative; width:1707px"><ul style="width: 10242px; position: relative; overflow: hidden; padding: 0px; margin: 0px; left: -6828px;">
						<li style="float: left; width: 1707px;"><img src="http://www.bootfastui.cn/img/2020/200424-2/slider1.jpg"></li>
						<li style="float: left; width: 1707px;"><img src="http://www.bootfastui.cn/img/2020/200424-2/slider2.jpg"></li>
						<li style="float: left; width: 1707px;"><img src="http://www.bootfastui.cn/img/2020/200424-2/slider3.jpg"></li>
						<li style="float: left; width: 1707px;"><img src="http://www.bootfastui.cn/img/2020/200424-2/slider4.jpg"></li>
						<li style="float: left; width: 1707px;"><img src="http://www.bootfastui.cn/img/2020/200424-2/slider5.jpg"></li>
						<li style="float: left; width: 1707px;"><img src="http://www.bootfastui.cn/img/2020/200424-2/slider6.jpg"></li>
					</ul></div>
				</div>

			</div>
		</div>
		<!--轮播结束-->
		<script src="http://www.bootfastui.cn/img/2020/200424-2/jquery-1.11.0.js" type="text/javascript" charset="utf-8"></script>
		<script src="http://www.bootfastui.cn/img/2020/200424-2/jquery.SuperSlide.2.1.1.js" type="text/javascript" charset="utf-8"></script>
		<script>
			//轮播
			jQuery(".slideBox").slide({
				mainCell: ".bd ul",
				effect: "left",
				autoPlay: true
			});
		</script>
	
版权所有:奋达科技 备案号: 豫ICP备2021000581号-3