HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>网易考拉</title>
<link rel="stylesheet" href="./css/网易考拉.css">
<link rel="stylesheet" href="./css/reset.css"><!-- 清除默认样式 -->
<link rel="stylesheet" href="./css/kaola.css"><!-- 导航条样式表 -->
</head>
<body>
<nav id="topNav">
<div id="topNavWrap" class="clearfix">
<div id="topNavLeft">
<span class="welcome">考拉欢迎你!</span>
<a href="#" class="login">登陆</a>
<span class="sep">|</span>
<a href="#" class="register" target="_blank">免费注册</a>
</div>
<div id="topNavCenter">
<a href="#" class="app"><!-- notice 通知 -->
手机考拉
<span class="m-notice">
<img src="./img/9c6b0d6c-4a71-4018-8fb6-46496f51caff.png" alt="手机版网易考拉" style="width: 116px; height: 116px;">
<strong class="txt">
下载APP
<br>
领1000元新人礼包
</strong>
<span class="arrow">
<span class="arr"></span>
<span class="arr1"></span>
</span>
</span>
</a>
</div>
<ul id="topNavRight">
<li class="common">
<a href="#">每日签到</a>
<span class="sep">|</span>
</li>
<li class="common">
<a href="#">我的订单</a>
<span class="sep">|</span>
</li>
<li class="dropmenu personal">
<div class="mcDropMenuBox">
<a href="#" class="topNavHolder toplevel">
个人中心
<i class="arr"></i>
</a>
<span class="sep">|</span>
<div class="mcDropMenu">
<a href="#">我的优惠卷</a>
<a href="#">我的红包</a>
<a href="#">我的考拉豆</a>
<a href="#">账号管理</a>
<a href="#">我的实名认证</a>
<a href="#">我收藏的商品</a>
<a href="#">我关注的品牌</a>
<a href="#">售后管理</a>
</div>
</div>
</li>
<li class="dropmenu personal">
<div class="mcDropMenuBox">
<a href="#" class="topNavHolder toplevel">
客户服务
<i class="arr"></i>
</a>
<span class="sep">|</span>
<div class="mcDropMenu">
<a href="#">联系客服</a>
<a href="#">帮助中心</a>
</div>
</div>
</li>
<li class="dropmenu personal">
<div class="mcDropMenuBox">
<a href="#" class="topNavHolder toplevel">
充值中心
<i class="arr"></i>
</a>
<span class="sep">|</span>
<div class="mcDropMenu">
<a href="#">话费充值</a>
<a href="#">游戏充值</a>
<a href="#">AppStore充值卡</a>
</div>
</div>
</li>
<li class="dropmenu personal">
<div class="mcDropMenuBox">
<a href="#" class="topNavHolder toplevel">
消费者权益
<i class="arr"></i>
</a>
<span class="sep">|</span>
<div class="mcDropMenu">
<a href="#">消费者告之</a>
<a href="#">消费者投诉</a>
</div>
</div>
</li>
<li class="dropmenu personal">
<div class="mcDropMenuBox">
<a href="#" class="topNavHolder toplevel">
更多
<i class="arr"></i>
</a>
<span class="sep">|</span>
<div class="mcDropMenu">
<a href="#">收藏本站</a>
<a href="#">新浪微博</a>
<a href="#">微信公众号</a>
<a href="#">易信公众号</a>
<a href="#">招商合作</a>
<a href="#">考拉招聘</a>
</div>
</div>
</li>
</ul>
</div>
</nav>
<div class="box2">
<div class="box2a">
<a href="#">
<img width="100%" height="100%" src="./img/网易考拉.png" alt="网易考拉">
</a>
<div class="box2b">
<input type="sosuo" autocomplete="off" name="baike-search" placeholder="请输入您需要搜索的商品" class="sousuo">
<div class="hongtubiao">
<a href="#">
<img width="100%" height="100%" src="./img/红椭圆.png" alt="红椭圆">
</a>
</div>
<div class="xiaohongxian"></div>
<div class="fangdajing">
<img width="100%" height="100%" src="./img/放大镜.png" alt="放大镜">
</div>
<div class="gouwuche">
<a href="#">
<img width="120px" height="50px" src="./img/购物车.png" alt="购物车">
</a>
</div>
<div class="sousuozi">
<a href="#">面膜</a>
<a href="#">口红</a>
<a href="#">减肥</a>
<a href="#">全球工厂店</a>
<a href="#">运动鞋</a>
<a href="#">项链</a>
<a href="#">女包</a>
</div>
</div>
<div class="box3">
<div class="box3a">
<a href="#" class="jianju">首页</a>
<a href="#" class="jianju">今日限时购物</a>
<a href="#" class="jianju">每日上新</a>
<a href="#" class="jianju">国家馆</a>
<a href="#" class="jianju">海外旗舰店</a>
<a href="#" class="jianju">工厂店</a>
<a href="#" class="jianju">品质奶粉</a>
<a href="#" class="jianju">人气面膜</a>
<a href="#" class="jianju">礼品卡</a>
</div>
<div class="boxtiao">
<ul class="hong1 hong2">
<li class="hong2 hong3">所有分类</li>
<li class="hong2 hong3">美容彩妆</li>
<li class="hong2 hong3">母婴儿童</li>
<li class="hong2 hong3">营养保健</li>
<li class="hong2 hong3">家居个护</li>
<li class="hong2 hong3">数码家电</li>
<li class="hong2 hong3">轻奢 </li>
<li class="hong2 hong3">服饰鞋靴</li>
<li class="hong2 hong3">运动户外</li>
<li class="hong2 hong3">手表配饰</li>
<li class="hong2 hong3">环球美食</li>
<div class="hong4 aaa">
<a href="#" class="bbb">手机/配件</a>
<a href="#" class="ddd">苹果</a>
<a href="#" class="ddd">华为</a>
<a href="#" class="ddd">小米</a>
<a href="#" class="ddd">opple</a>
<a href="#" class="ddd">vivo</a>
<a href="#" class="ddd">三星</a>
<a href="#" class="ddd">数据线</a>
<a href="#" class="ddd">手机壳</a>
<a href="#" class="ddd">吸尘器</a>
<a href="#" class="ddd">加湿器</a>
<a href="#" class="bbb">生活电器</a>
<a href="#" class="ddd">戴森</a>
<a href="#" class="ddd">电吹风</a>
<a href="#" class="ddd">加湿器</a>
<a href="#" class="ddd">空气净化器</a>
<a href="#" class="ddd">扫地机器人</a>
<a href="#" class="ddd">吸尘器</a>
<a href="#" class="ddd">加湿器</a>
<a href="#" class="ddd">洗衣机</a>
<a href="#" class="ddd"> </a>
<a href="#" class="bbb">智能影音</a>
<a href="#" class="ddd">beats</a>
<a href="#" class="ddd">BOSE</a>
<a href="#" class="ddd">JBL</a>
<a href="#" class="ddd">耳机/耳麦</a>
<a href="#" class="ddd">拍立得</a>
<a href="#" class="ddd">智能设备</a>
<a href="#" class="ddd">小米</a>
<a href="#" class="ddd">儿童手表</a>
<a href="#" class="ddd">小米</a>
<a href="#" class="bbb">生活电器</a>
<a href="#" class="ddd">戴森</a>
<a href="#" class="ddd">电吹风</a>
<a href="#" class="ddd">加湿器</a>
<a href="#" class="ddd">空气净化器</a>
<a href="#" class="ddd">扫地机器人</a>
<a href="#" class="ddd">吸尘器</a>
<a href="#" class="ddd">加湿器</a>
<a href="#" class="ddd">洗衣机</a>
<a href="#" class="ddd"></a>
<a href="#" class="bbb">生活电器</a>
<a href="#" class="ddd">戴森</a>
<a href="#" class="ddd">电吹风</a>
<a href="#" class="ddd">加湿器</a>
<a href="#" class="ddd">空气净化器</a>
<a href="#" class="ddd">扫地机器人</a>
<a href="#" class="ddd">吸尘器</a>
<a href="#" class="ddd">加湿器</a>
<a href="#" class="ddd">洗衣机</a>
<a href="#" class="ddd"></a>
<a href="#" class="bbb">生活电器</a>
<a href="#" class="ddd">戴森</a>
<a href="#" class="ddd">电吹风</a>
<a href="#" class="ddd">加湿器</a>
<a href="#" class="ddd">空气净化器</a>
<a href="#" class="ddd">扫地机器人</a>
<a href="#" class="ddd">吸尘器</a>
<a href="#" class="ddd">加湿器</a>
<a href="#" class="ddd">洗衣机</a>
</div>
</ul>
</div>
</div>
<div class="box4">
<img width="100%" height="100%" src="./img/女孩.png" alt="女孩长图">
<div class="box5">
div <div class="box5a">
<a href="#">
网易自营
</a>
<a href="#">
全球直采
</a>
<a href="#">
假一赔十
</a>
<a href="#">
售后无忧
</a>
</div>
</div>
<div class="boxbai">
<a href="#">
<img width="100%" height="245px" src="./img/小白条.png" alt="小白条">
</a>
</div>
<div class="boxbbai">
<a href="#">
<img width="100%" height="703px" src="./img/大白条.png" alt="大白条">
</a>
</div>
</div>
<div class="box6"></div>
<div class="box7"></div>
<div class="box8">
<a href="#">
<img width="100%" height="330px" src="./img/四连图.png" alt="四连图">
</a>
</div>
<div class="box17">
<a href="#">
<img width="100%" height="330px" src="./img/四连图.png" alt="四连图">
</a>
</div>
<div class="box16"></div>
<div class="box15"></div>
<div class="box18">
<a href="#">
<img width="100%" height="380px" src="./img/长图啊.png" alt="长图啊">
</a>
</div>
<div class="box19"></div>
<div class="box20">
<a href="#">
<img width="100%" height="380px" src="./img/长图啊啊.png" alt="长图啊啊">
</a>
</div>
<div class="box21"></div>
<div class="box22">
<a href="#">
<img width="100%" height="355px" src="./img/长图啊啊啊.png" alt="长图啊啊啊">
</a>
</div>
<div class="box23"></div>
<div class="box24">
<a href="#">
<img width="100%" height="355px" src="./img/长图啊啊啊.png" alt="长图啊啊啊">
</a>
</div>
<div class="box25">
<a href="#">
<img width="100%" height="75px" src="./img/长图啊啊啊啊.png" alt="长图啊啊啊啊">
</a>
</div>
<div class="box26">
<a href="#">
<img width="100%" height="260px" src="./img/四连图下.png" alt="四连图下">
</a>
</div>
<div class="box27">
<a href="#">
<img width="100%" height="125px" src="./img/四连图下下.png" alt="四连图下下">
</a>
</div>
<div class="box28">
<a href="#">
<img width="100%" height="260px" src="./img/大长条下.png" alt="大长条下">
</a>
</div>
<div class="box29">
<a href="#">
<img width="100%" height="125px" src="./img/每日上新下.png" alt="每日上新下">
</a>
</div>
<div class="box30">
<a href="#">
<img width="100%" height="67px" src="./img/美妆.png" alt="美妆">
</a>
</div>
<div class="box31">
<a href="#">
<img width="100%" height="540px" src="./img/长图下下.png" alt="长图下下">
</a>
</div>
<div class="box32"></div>
<div class="box33">
<a href="#">
<img width="100%" height="218px" src="./img/热卖品牌.png" alt="热卖品牌">
</a>
</div>
<div class="box30">
<a href="#">
<img width="100%" height="67px" src="./img/美妆.png" alt="美妆">
</a>
</div>
<div class="box31">
<a href="#">
<img width="100%" height="540px" src="./img/长图下下.png" alt="长图下下">
</a>
</div>
<div class="box32"></div>
<div class="box33">
<a href="#">
<img width="100%" height="218px" src="./img/热卖品牌.png" alt="热卖品牌">
</a>
</div>
<div class="box34"></div>
<div class="box35">
<a href="#">
<img width="100%" height="75px" src="./img/母婴专用.png" alt="母婴专用">
</a>
</div>
<div class="box36">
<a href="#">
<img width="100%" height="540px" src="./img/母婴啊.png" alt="母婴啊">
</a>
</div>
<div class="box37"></div>
<div class="box38">
<a href="#">
<img width="100%" height="228px" src="./img/热卖品牌.png" alt="热卖品牌">
</a>
</div>
<div class="box95"></div>
<div class="box96">
<a href="#">
<img width="100%" height="75px" src="./img/母婴专用.png" alt="母婴专用">
</a>
</div>
<div class="box97">
<a href="#">
<img width="100%" height="540px" src="./img/母婴啊.png" alt="母婴啊">
</a>
</div>
<div class="box98"></div>
<div class="box99">
<a href="#">
<img width="100%" height="228px" src="./img/热卖品牌.png" alt="热卖品牌">
</a>
</div>
<div class="box39"></div>
<div class="box40">
<a href="#">
<img width="100%" height="563px" src="./img/最底.png" alt="最底">
</a>
</div>
</body>
</html>
CSS样式
.arr{
position: absolute;
right: -3px;
top: 50%;
margin-top: -2px;
width: 0;
height: 0;
font-size: 0;
line-height: 0;
border-color: #999 transparent transparent;
border-style: solid dashed dashed;
border-width: 4px 4px 0;
-webkit-transition: -webkit-transform .2s ease-in;
-moz-transition: -moz-transform .2s ease-in;
-ms-transition: -ms-transform .2s ease-in;
-o-transition: -o-transform .2s ease-in;
transition: transform .2s ease-in;
}
.box2{
width: 1440px;
height: 91px;
background-color: white;}
.box2a{
width: 210px;
height: 70px;
background-color: black;
left: 175px;
margin: 25px 1053px 55px 175px;
floata:left;}
.box2b{
width: 510px;
height: 40px;
background-color: #ea3f41;
margin: -70px 410px 0px 365px;
float:left;
border-radius: 20px;
}
.sousuo{
display:block;
float:left;
width:510px;
height:31px;
border:2px solid #ea3f41;
padding:5px 9px 5px 45px;
font-size:12px;
border-radius: 40px;
float:left;
}
.hongtubiao{
width: 60px;
height: 41px;
background-color: #ea3f41;
margin:-43px 0px 0px 505px;
float:left;
border-radius:20px;}
.xiaohongxian{
width:3px;
height:18px;
background-color:#ed435c;
margin:-32px 0px 0px 563px;
float:left;
}
.fangdajing{
width:18px;
height:18px;
background-color:#ed435c;
margin:-32px 0px 0px 28px;
float:left;
}
.gouwuche{
width:120px;
height:50px;
background-color:#ed435c;
margin:-49px 0px 0px 600px;
float:left;
}
.box2 .sousuozi{
width:410px;
height:18px;
color:#999;
margin:2px 0px 0px 30px;
float:left;
}
.box2 .sousuozi a{
color:#999;
margin-right: 24px;
}
.box3{
width: 1440px;
height: 38px;
background-color: white;}
.box3a{
width: 820px;
height: 25px;
margin:5px 0px 0px 230px;
float:left;
background-color: white;
font-size:15px;
}
.box3 .box3a a{
color:black;
}
.jianju{
float: left;
padding: 0 17px;
font-weight:bold ;
}
.boxtiao{
width: 80px;
height: 500px;
background-color: red;
z-index: 100;
position: absolute;
left: 175px;
}
.box4{
width: 1440px;
height: 505px;
background-color: mediumvioletred;
position:relative;}
.boxbai{
width: 64px;
height: 245px;
background-color: white;
z-index: 100;
left: 1285px;
bottom: 530px;
position: fixed;
}
.hong1{
list-style: none;
display: block;
position: relative;
}
.hong2{
float: left;
height: 49.4px;
width: 100px;
background: red;
/*background: -webkit-linear-gradient(90deg,red,#ff3264);*/
/*background: linear-gradient(90deg,red,#ff3264);*/
color: #fff;
font-size: 15px;
margin:0 auto;
padding-left: 0;
overflow: visible;
}
.hong2:hover .hong4{
display: block;
}
.hong3{
padding-left: 10px;
width: 87px;
cursor: pointer;
text-align: left;
padding-right: 3px;
}
.hong3:hover {
color:red;
}
.hong4{
position: absolute;
top:50px;
left: 100px;
background-color: white;
width: 630px;
height: 415px;
display: none;}
.boxtiao ul li:hover{
background-color: white;
}
.boxtiao ul li{
text-align;line-height:5px;
}
.aaa{
height: 300px;
line-height: 34px;
font-size: 14px;
font-weight: 700;
}
.bbb{
display: inline;
color: #333;
text-align: left;
}
.ccc{
margin-left: -8px;
font-size: 0;
}
.ddd{
display: inline-block;
height: 14px;
line-height: 14px;
padding: 0 10px;
margin-top: 20px;
font-size: 13px;
color: red;
}
.box3 .box3a a:hover{
color: red;
}
.boxbai{
width: 64px;
height: 245px;
background-color: white;
z-index: 100;
left: 1285px;
bottom: 530px;
position: fixed;
}
.boxbbai{
width: 98px;
height: 703px;
background-color: white;
z-index: 100;
left: 55px;
bottom: 50px;
position: fixed;
}
.box5{
width: 1440px;
height: 45px;
background-color: silver;
opacity: 0.8;
z-index: 50;
position: absolute;
bottom:0px;
}
.box5a{
color:white;
padding: 0 10px;
margin-top: 20px;
margin: -2px 0px 0px 300px;
}
.box5 .box5a a{
color:white;
padding: 20px;
font-size: 13px;
}
.box7{
width: 1440px;
height: 20px;
background-color: white;}
.box8{
width: 1100px;
height: 330px;
background-color: mediumvioletred;
margin: 0 auto;}
.box17{
width: 1100px;
height: 380px;
background-color: white;
margin: 0 auto;}
.box16{
width: 1100px;
height: 1px;
background-color: silver;
margin: 0 auto;}
.box15{
width: 1100px;
height: 75px;
background-color: white;
margin: 0 auto;}
.box18{
width: 1100px;
height: 380px;
background-color: rosybrown;
margin: 0 auto;}
.box19{
width: 1100px;
height: 75px;
background-color: white;
margin: 0 auto;}
.box20{
width: 1100px;
height: 380px;
background-color: rosybrown;
margin: 0 auto;}
.box21{
width: 1100px;
height: 75px;
background-color: white;
margin: 0 auto;}
.box22{
width: 1100px;
height: 355px;
background-color: rosybrown;
margin: 0 auto;}
.box23{
width: 1100px;
height: 75px;
background-color: white;
margin: 0 auto;}
.box24{
width: 1100px;
height: 355px;
background-color: rosybrown;
margin: 0 auto;}
.box25{
width: 1100px;
height: 75px;
background-color: silver;
margin: 0 auto;}
.box26{
width: 1100px;
height: 260px;
background-color: grey;
margin: 0 auto;}
.box27{
width: 1100px;
height: 125px;
background-color: black;
margin: 0 auto;}
.box28{
width: 1100px;
height: 260px;
background-color: grey;
margin: 0 auto;}
.box29{
width: 1100px;
height: 125px;
background-color: black;
margin: 0 auto;}
.box30{
width: 1100px;
height: 67px;
background-color: burlywood;
margin: 0 auto;}
.box31{
width: 1100px;
height: 540px;
background-color: rebeccapurple;
margin: 0 auto;}
.box32{
width: 1100px;
height: 20px;
background-color: white;
margin: 0 auto;}
.box33{
width: 1100px;
height: 218px;
background-color: rebeccapurple;
margin: 0 auto;}
.box901{
width: 1100px;
height: 67px;
background-color: burlywood;
margin: 0 auto;}
.box902{
width: 1100px;
height: 540px;
background-color: rebeccapurple;
margin: 0 auto;}
.box903{
width: 1100px;
height: 20px;
background-color: white;
margin: 0 auto;}
.box904{
width: 1100px;
height: 218px;
background-color: rebeccapurple;
margin: 0 auto;}
.box34{
width: 1125px;
height: 41px;
background-color: white;
margin: 0 auto;}
.box35{
width: 1100px;
height: 75px;
background-color: darkgrey;
margin: 0 auto;}
.box36{
width: 1100px;
height: 540px;
background-color: rebeccapurple;
margin: 0 auto;}
.box37{
width: 1100px;
height: 20px;
background-color: white;
margin: 0 auto;}
.box38{
width: 1100px;
height: 218px;
background-color: rebeccapurple;
margin: 0 auto;}
.box95{
width: 1125px;
height: 41px;
background-color: white;
margin: 0 auto;}
.box96{
width: 1100px;
height: 75px;
background-color: darkgrey;
margin: 0 auto;}
.box97{
width: 1100px;
height: 540px;
background-color: rebeccapurple;
margin: 0 auto;}
.box98{
width: 1100px;
height: 20px;
background-color: white;
margin: 0 auto;}
.box99{
width: 1100px;
height: 218px;
background-color: rebeccapurple;
margin: 0 auto;}
.box39{
width: 1100px;
height: 41px;
background-color:white;
margin: 0 auto;}
.box40{
width: 1439px;
height: 563px;
background-color: dimgrey;
margin: 0 auto;}