返回仿小米商城首页......登陆

仿小米商城首页布局及主体

天腾²⁰¹⁹2019-04-18 11:34:24251

<!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: #ccc;margin-left: 145px;top: 0px;display: none;}

.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;}

/* 手机 */

.contentUl{background: #ccc;height: 80px;margin: 10px auto;}

.contentPhone{height: 614px;margin: 10px auto;}

.contentPhone_l{height: 614px;width: 234px;background: url(../images/buy/手机AD.jpg);margin-right: 12px;float: left;}

.contentPhone_r{height: 614px;width: 980px;float: left;}

.contentPhone_r_0{height: 300px;width: 235px;background: #ccc;float: left;}


/* 网页底部样式 */

.footer{width: 1226px;height: 100px;margin: 10px auto;}

.footer_top_li_1{width: 1226px;height: 80px;line-height: 80px;text-align: center;}

.footer_top_li_1 a{font-size: 20px;color: #616161;font-weight: 300;}

.footer_top_li_1 a:hover{color: #ff6700;}

.footer_top_li_1 a i{font-size: 26px;margin-right: 10px;}

.footer_top_li_1 span{font-size: 20px;color: #616161;border-left: 1px solid #e0e0e0; margin: 0px 56px;}

.separate{width: 1226px;border-bottom: 1px solid #e0e0e0;display: block;}


.footer_top_li_2{width: 1226px;height: 100px;margin: 40px 0px;}

.footer_top_li_a dl{float: left;display: block;width: 160px;}

.footer_top_li_a dt{font-size: 14px;line-height: 14px;color: #424242;margin-bottom: 26px;}

.footer_top_li_a dd{font-size: 12px;line-height: 18px;color: #424242;margin-bottom: 10px;}

.footer_top_li_a dd a{color: #757575;}

.footer_top_li_a dd a:hover{color: #ff6700;}

.footer_top_li_a .connect{width: 258px;height: 112px;border-left: 1px solid #e0e0e0;float: right;text-align: center;}

.footer_top_li_a .connect .telephone{color: #ff6700;margin: 0px 0px 5px;font-size: 22px;line-height: 22px;}

.footer_top_li_a .connect .time{color: #616161;max-resolution: 0px 16px;font-size: 12px;;}

.footer_top_li_a .connect button{width: 118px;height: 28px;font-size: 12px;line-height: 28px;border: 1px solid #ff6700;color: #ff6700;background: #fff;margin-top: 20px;}

.footer_top_li_a .connect button:hover{background: #ff6700;color: #fff;}

.footer_bottom_li_1,.footer_bottom_li_2,.footer_bottom_li_3{float: left;}

.footer_bottom_li_4{clear: left;margin-top: 15px;text-align:center;font-family: "楷体";font-size:24px;color: #ccc;}

.footer_bottom_li_a{height: 19px;width: 640px;}

.footer_bottom_li_a a{height: 19px;font-size: 14px;float: left;color: #757575;}

.footer_bottom_li_a a:hover{color: #ef3a3b;}

.footer_bottom_li_a a span{height: 8px;color: #757575;border-left: 1px solid #b0b0b0;margin: 3px 3px;}

.footer_bottom_li_b a:hover{color: #ef3a3b;}

.footer_bottom_li_b{width: 640px;color: #b0b0b0;font-size: 12px;}

.footer_bottom_li_3 img {width: 100px;float: left;}

</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>


<!-- 手机 -->

<div class="contentUl">手机</div>

<div class="contentPhone">

<div class="contentPhone_l"></div>

<div class="contentPhone_r">

<div class="contentPhone_r_0" style="margin-right:12.7px;"></div>

<div class="contentPhone_r_0" style="margin-right:12.7px;"></div>

<div class="contentPhone_r_0" style="margin-right:12.7px;"></div>

<div class="contentPhone_r_0"></div>

<div class="contentPhone_r_0" style="margin-right:12.7px;margin-top:12.7px;"></div>

<div class="contentPhone_r_0" style="margin-right:12.7px;margin-top:12.7px;"></div>

<div class="contentPhone_r_0" style="margin-right:12.7px;margin-top:12.7px;"></div>

<div class="contentPhone_r_0" style="margin-top:12.7px;"></div>

</div>


</div>

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

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


</div>

</div>



<!-- 底部 -->

<div class="footers">

<div class="footer">

<div class="footer_top_li">

<div class="footer_top_li_1">

<a href="#"><i class="fa fa-wrench"></i>客户服务</a><span></span>

<a href="#"><i class="fa fa-wrench"></i>7天无理由退货</a><span></span>

<a href="#"><i class="fa fa-wrench"></i>关于我们</a><span></span>

<a href="#"><i class="fa fa-wrench"></i>新手上路</a><span></span>

<a href="#"><i class="fa fa-wrench"></i>点点保障</a>

</div>

<span class="separate"></span>

<div class="footer_top_li_2">

<div class="footer_top_li_a">

<dl>

<dt>帮助中心</dt>

<dd><a href="">账户管理</a></dd>

</dl>

<dl>

<dt>服务支持</dt>

<dd><a href="">售后政策</a></dd>

</dl>

<dl>

<dt>线下门店</dt>

<dd><a href="">点点之家</a></dd>

</dl>

<dl>

<dt>关于点点</dt>

<dd><a href="">了解点点</a></dd>

</dl>

<dl>

<dt>关注我们</dt>

<dd><a href="">官方微信</a></dd>

</dl>

<dl>

<dt>特色服务</dt>

<dd><a href="">礼物码</a></dd>

</dl>

<div class="connect">

<p class="telephone">Feir-8888-8888</p>

<p class="time">周一至周日 9:00-18:00</p>

<button><span class="fa fa-commenting"></span>联系客服</button>

</div>

</div>

</div>

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


</div>

<div class="footer_bottom_li">

<div class="footer_bottom_li_1">

<img src="static/images/footlogo.png" alt="" class="logoBottom">

</div>

<div class="footer_bottom_li_2">

<div class="footer_bottom_li_a">                  

<a>点点商城<span></span></a>

<a>点点聊天<span></span></a>

<a>点点天猫店<span></span></a>

<a>隐私政策<span></span></a>

<a>问题反馈<span></span></a>

<a>点点之家<span></span></a>

<a>点点游戏<span></span></a>                      

</div>

<div class="footer_bottom_li_b">

<a href="">©dd.com</a>

浙ICP证XXXXXX号

<a href="#">浙ICP备XXXXXXX号</a>

<a href="#">浙公网安备XXXXXXXX号</a>

<a href="#">浙网文[2019]XXXXX-XXX号</a>

<br>

违法和不良信息举报电话:XXXXXXXXXXXXX,本网站所列数据,除特殊说明,所有数据均出自我司实验室测试

</div>

</div>

<div class="footer_bottom_li_3">

<img src="static/images/footericon1.png" alt="" class="icon">

<img src="static/images/footericon2.png" alt="" class="icon">

<img src="static/images/footericon3.png" alt="" class="icon">

<img src="static/images/footericon4.png" alt="" class="icon">

<img src="static/images/footericon5.png" alt="" class="icon">

</div>

<div class="footer_bottom_li_4">

探索黑科技,点点为发烧而生!

</div>

</div>        

</div>

</div>


<script>

var t=setInterval(function(){

i++;

move();

},2000);


function move(){

if(i==size){

i=1;

$(".box .imageList").css({left:0});

}

$(".box .imageList").stop().animate({left:+i*980},980);


if(i==size-1){

$('.box .num li').eq(0).addClass("on").siblings().remove("on");

} else{

$('.box .num li').eq(i).addClass("on").siblings().remove("on");

}

}


for(var j=0;j<size-1;j++){

$(".box .num").append("<li></li>");

}


$(".box .unm li").first().addClass("on");


if(i==size-1){

$('.box .num li').eq(0).addClass("on").siblings().remove("on");

} else{

$('.box .num li').eq(i).addClass("on").siblings().remove("on");

}

</script>

</body>

</html>



最新手记推荐

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

全部回复(0)我要回复

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