返回页面导航及二级......登陆

页面导航及二级导航练习

天腾²⁰¹⁹2019-04-20 16:12:14250

<!DOCTYPE html>


<html lang="en">


<head>


<meta charset="UTF-8">


<title>点点商城</title>


<link rel="shortcut icon" type="image/x-icon" href="static/images/footlogo.png">


<link rel="stylesheet" href="static/font-awesome/css/font-awesome.min.css">


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


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




<style>


*{margin: 0px;padding: 0px;}


li{list-style: none;}


a{text-decoration: none;color: #ccc;cursor: pointer;}


.clear{clear: both;}


/* 头部样式 */


.header{background: #333;width: 100%;height: 40px;}


.menu{width: 1226px;height: 40px;margin: 0px auto;line-height: 40px;font-size: 12px;}


.header_left{float: left;}


.header_left li{float: left;}


.header_left li a:hover{color: red;}


.header_left li span{margin: 0px 10px;color: #6c6d69;}


.header_right{float: right;}


.header_right li{float: left;}


.header_right li span{margin: 0px 5px;color:6c6d69; }


.header_right li a:hover{color: red;}




/* 主体部分样式 */


.content{width: 1226px;margin: 0px auto;}


.contentMenu{height: 100px;margin: 1px auto;}




/* 上导航 */


.contentMenu_t{height: 60px;background: #fff;}


.contentMenu_t_1{float: left;}


.contentMenu_t_1a{float: left;font-size: 22px;font-weight: bold;color: red;line-height: 60px;}




.contentMenu_t_2{float: left;width:640px;margin-left: 30px;position: relative;}


.contentMenu_t_2 input::-webkit-search-cancel-button {display: none;}   /*除去ie下的input自带的删除按钮*/


.contentMenu_t_2 input{outline: none;padding-left:10px; width:500px;height:48px;margin-top: 10px;margin-left: 150px;border-color:#ccc;border: 1px solid red;border-radius: 24px;}


.contentMenu_t_3{position: absolute;right: 8px;top: 15px;font-size: 30px;font-weight: bold;color: green;}


.contentMenu_t_3:hover{color: red;}


.contentMenu_t_4{border:1px solid red;text-align: center;width: 100px;height: 48px;border-radius: 20px;margin-right: 80px;margin-top: 8px; float:right;}


.contentMenu_t_4a{display: inline-block;height: 48px;line-height: 48px;width: 100px;border:1px solid red;border-radius: 20px;color: #000;font-size: 14px;}


.contentMenu_t_4a:hover{background: crimson;color: #fff;}


.contentMenu_t_5{border:1px solid red;text-align: center;width: 100px;height: 48px;border-radius: 20px;margin-right: 55px;margin-top: 8px; float:right;}


.contentMenu_t_5a{display: inline-block;height: 48px;line-height: 48px;width: 100px;border:1px solid red;border-radius: 20px;color: #000;font-size: 14px;}


.contentMenu_t_5a:hover{background: crimson;color: #fff;}




/* 下导航  */


.contentMenu_b{height: 40px;background: #fff;line-height: 40px; margin: 0 auto;}


.contentMenu_b_l{float: left;width: 165px;height: 40px;background: linear-gradient(to right, red, #ff3266);line-height:40px;border-top-left-radius: 10px;}


.contentMenu_b_l span{font-size: 15px;margin-right: 6px;color: #fff;margin-left: 20px;}




.contentMenu_b_r {float: left;width: 1061px;height: 40px;text-align: center;line-height: 40px;font-size: 14px;background: linear-gradient(to left,#FFA25F, pink);}


.contentMenu_b_r ul li a{color: #000;margin-left: 20px;}


.contentMenu_b_r li {float: left;}


.contentMenu_b_r ul li:hover{border-bottom: 2px solid red;height: 37px;}


.contentMenu_b_r ul li a:hover{color: red;}


.contentMenu_b_r a{display: inline-block;width:80px;height:40px;text-align: center;}




/* 侧边导航与轮播图 */


.contentPic{margin: 1px auto;}


/* 侧边导航 */


.contentPic_l{background:  linear-gradient(to right, red, #ff3266);width: 165px; height: 460px;float: left;position: relative;}


.contentPic_l_ul{width:165px;height: 420px;margin: 5px 0px;}


.contentPic_l_ul li{width: 145px;height: 15px;line-height: 15px;font-size: 14px;padding: 15px;}


.contentPic_l_ul li a{color: #fff;}


.contentPic_l_ul li span{font-size: 15px;margin-right: 6px;color: #fff;}


.contentPic_l_ul li i{font-size: 15px;color: green;float: right;;margin-right: 10px;}




.contentPic_l_line{width: 160px;border: 1px solid #F53E66;margin-left: 2px;}


/* 下拉导航 */


.contentPic_l_ul_1{width: 1061px; height: 478px;float: left;border: 1px solid #FF3060;position: absolute; background: #fff;margin-left: 145px;top: 0px;display: none;z-index: 2; }


.contentPic_l_ul li:hover .contentPic_l_ul_1{display: block;}





/* 轮播图 */


.contentPic_r{background: #fff;width: 1061px; height: 460px;float: left;}


.box{width: 1061px;height: 460px;background-color: lightgrey;overflow:hidden; position: relative;}


.imageList img{width: 980px;height: 460px;}


.imageList{width: 2940px;list-style: none; float: left;position: absolute;}


.imageList li{float: left;}


.box .num{position: absolute;width: 100%;bottom: 10px;left: 0px;text-align: center;}


.box .num li{width: 10px;height: 10px;background-color: white;border-radius: 50%;display: inline-block;margin: 0 3px;cursor: pointer;}


.box .num li .on{background-color: orange;}





/* 四块广告 */


.contentpic_ul{height: 170px;margin: 10px auto;}


.contentpic_ul_1{background: #5f5750;width: 246px; height: 170px;margin-right: 10px;float: left;}


.contentpic_ul_0{width: 316px; height: 170px;float: left;}


/* 点点闪购 */


.contentShop{margin: 10px auto;}


.contentShop_1{width: 235px;height: 340px;background: #ccc;float: left;}




.contentImg{background: #ccc;height: 100px;margin: 10px auto;}




</style>




</head>


<body>


<!-- 头部 -->


<div class="header">


<div class="menu">


<ul class="header_left">


<li><a href="#">点点商城</a><span>|</span></li>


<li><a href="#">MIUI</a><span>|</span></li>


<li><a href="#">IOT</a><span>|</span></li>


<li><a href="#">云服务</a><span>|</span></li>


<li><a href="#">金融</a><span>|</span></li>


<li><a href="#">企业服务</a></li>


</ul>


<div class="header_right">


<ul>


<li><a href="#">登录</a><span>|</span></li>


<li><a href="#">注册</a><span>|</span></li>


<li><a href="shop/order.html">我的购物车</a><span>|</span></li>


<li><a href="shop/cart.html">个人中心</a><span>|</span></li>


<li><a href="#">收藏本站</a><span>|</span></li>


<li><a href="#">每日签到</a></li>


</ul>


</div>




</div>


</div>




<!-- 主体部分 -->


<div class="contents">


<div class="content">


<div class="contentMenu">


<!-- 上导航 -->


<div class="contentMenu_t">              


<a href="#" class="contentMenu_t_1"> <img src="static/images/hunter04.png"></a>


<a href="" class="contentMenu_t_1a">点点商城</a>


<form action="" class="contentMenu_t_2">


<label for=""></label>


<input type="search" placeholder="我身上有一条龙">


<div class="contentMenu_t_3"><i class="fa fa-search"></i></div>                    


</form>  


<div  class="contentMenu_t_4">


<a href="" class="contentMenu_t_4a"><i class="fa fa-handshake-o fa-lg" style="color:green;"></i> 我的购物车</a>


</div>


</div>


<div class="clear"></div>


<!-- 下导航 -->


<div class="contentMenu_b">                


<div class="contentMenu_b_l">


<span class="fa fa-navicon" >&nbsp;&nbsp;&nbsp;所有分类</span>


</div>


<div class="contentMenu_b_r">


<ul>


<li> <a href="">首页</a></li>


<li> <a href="">数码家电</a></li>


<li> <a href="">美容彩妆</a></li>


<li> <a href="">母婴儿童</a></li>


<li> <a href="">营养保健</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>


</div>


<div class="clear"></div>




<!-- 侧边导航与轮播图 -->


<div class="contentPic">


<!-- 侧边导航 -->


<div class="contentPic_l">


<ul class="contentPic_l_ul">


<li><span class="fa fa-address-card-o"></span> <a href="">数码家电</a> <i class="fa fa-angle-double-right"></i>


<div class="contentPic_l_ul_1">


<div>


<h3>下拉导航1</h3>


</div>


</div>


</li>


<div class="contentPic_l_line"></div>




<li><span class="fa fa-gears (alias)"></span> <a href="">美容彩妆</a> <i class="fa fa-angle-double-right"></i>


<div class="contentPic_l_ul_1">


<div>


<h3>下拉导航2</h3>


</div>


</div>


</li>


<div class="contentPic_l_line"></div>


<li><span class="fa fa-motorcycle"></span> <a href="">母婴儿童</a> <i class="fa fa-angle-double-right"></i>


<div class="contentPic_l_ul_1">


<div>


<h3>下拉导航3</h3>


</div>


</div>                      


</li>


<div class="contentPic_l_line"></div>


<li><span class="fa fa-universal-access"></span> <a href="">营养保健</a> <i class="fa fa-angle-double-right"></i>


<div class="contentPic_l_ul_1">


<div>


<h3>下拉导航4</h3>


</div>


</div> </li>


<div class="contentPic_l_line"></div>


<li><span class="fa fa-tachometer"></span> <a href="">个人洗护</a> <i class="fa fa-angle-double-right"></i>


<div class="contentPic_l_ul_1">


<div>


<h3>下拉导航5</h3>


</div>


</div> </li>


<div class="contentPic_l_line"></div>


<li><span class="fa fa-sign-language"></span> <a href="">运动户外</a> <i class="fa fa-angle-double-right"></i>


<div class="contentPic_l_ul_1">


<div>


<h3>下拉导航6</h3>


</div>


</div> </li>


<div class="contentPic_l_line"></div>


<li><span class="fa fa-street-view"></span> <a href="">手表配饰</a> <i class="fa fa-angle-double-right"></i>


<div class="contentPic_l_ul_1">


<div>


<h3>下拉导航7</h3>


</div>


</div> </li>


<div class="contentPic_l_line"></div>


<li><span class="fa fa-shopping-bag"></span> <a href="">家居生活</a> <i class="fa fa-angle-double-right"></i>


<div class="contentPic_l_ul_1">


<div>


<h3>下拉导航8</h3>


</div>


</div> </li>


<div class="contentPic_l_line"></div>


</ul>






</div>




<!-- 轮播图  -->


<div class="contentPic_r">  


<div class="box">


<ul class="imageList">


<li><img src="static/images/a.jpg" alt="a"></li>


<li><img src="static/images/b.jpg" alt="b"></li>


<li><img src="static/images/c.jpg" alt="c"></li>


</ul>


<ul class="num">


<li></li>


<li></li>


<li></li>




</ul>


</div>    


</div>


</div>


<div class="clear"></div>




<!-- 四块广告 -->


<div class="contentpic_ul">


<div class="contentpic_ul_1"></div>


<div class="contentpic_ul_0" style="background:url(static/images/midAD1.jpg);margin-right: 10px;"></div>


<div class="contentpic_ul_0" style="background:url(static/images/midAD2.jpg);margin-right: 11px;"></div>


<div class="contentpic_ul_0" style="background:url(static/images/midAD3.jpg);"></div>


</div>


<div class="clear"></div>




<!-- 点点闪购 -->


<div class="contentShop">


<h1>点点闪购</h1>


<div class="contentShop_1" style="margin-right:12.7px;border-top:1px solid red"></div>


<div class="contentShop_1" style="margin-right:12.7px;border-top:1px solid yellow"></div>


<div class="contentShop_1" style="margin-right:12.7px;border-top:1px solid blue"></div>


<div class="contentShop_1" style="margin-right:12.7px;border-top:1px solid brown"></div>


<div class="contentShop_1" style="border-top:1px solid cadetblue"></div>


</div>


<div class="clear"></div>




<div class="contentImg" style="background:url(static/images/longAD1.jpg);"></div>





最新手记推荐

• 用composer安装thinkphp框架的步骤• 省市区接口说明• 用thinkphp,后台新增栏目• 管理员添加编辑删除• 管理员添加编辑删除

全部回复(0)我要回复

暂无评论~
  • 取消回复发送