<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="images/logo.png">
<link rel="stylesheet" type="text/css" href="index.css">
<title>仿小米官网</title>
</head>
<body>
<div class="nav">
<div class="one">
<div class="nav_left">
<a href="#" class="nav_a">小米商城</a><span>|</span>
<a href="#" class="nav_a">MIUI</a><span>|</span>
<a href="#" class="nav_a">loT</a><span>|</span>
<a href="#" class="nav_a">云服务</a><span>|</span>
<a href="#" class="nav_a">天星数科</a><span>|</span>
<a href="#" class="nav_a">有品</a><span>|</span>
<a href="#" class="nav_a">小爱开放平台</a><span>|</span>
<a href="#" class="nav_a">企业团购</a><span>|</span>
<a href="#" class="nav_a">资质证照</a><span>|</span>
<a href="#" class="nav_a">协议规则</a><span>|</span>
<a href="#" class="nav_a">下载app</a><span>|</span>
<a href="#" class="nav_a">智能生活</a><span>|</span>
<a href="#" class="nav_a">Select Location</a>
</div>
<div class="nav_right">
<a href="#" class="nav_a">登录</a><span>|</span>
<a href="#" class="nav_a">注册</a><span>|</span>
<a href="#" class="nav_a">消息通知</a><span>|</span>
<a href="#" class="cart"> 购物车</a>
</div>
</div>
</div>
<div class="one">
<div class="con">
<div class="logo_box">
<a href="#" class="logo"></a>
</div>
<a href="#" class="logo_a">Xiaomi手机</a>
<a href="#" class="logo_a">Redmi红米</a>
<a href="#" class="logo_a">电视</a>
<a href="#" class="logo_a">笔记本</a>
<a href="#" class="logo_a">平板</a>
<a href="#" class="logo_a">家电</a>
<a href="#" class="logo_a">路由器</a>
<a href="#" class="logo_a">服务</a>
<a href="#" class="logo_a">社区</a>
<div class="search_box">
<input type="text" class="search" placeholder="手机">
<a href="#" class="btn"> </a>
</div>
</div>
<div class="char">
<div class="char_left">
<a href="#" class="char_left_title">手机</a>
<a href="#" class="char_left_title">电视</a>
<a href="#" class="char_left_title">笔记本 平板</a>
<a href="#" class="char_left_title">家电</a>
<a href="#" class="char_left_title">出行 穿戴</a>
<a href="#" class="char_left_title">智能 路由器</a>
<a href="#" class="char_left_title">电源 配件</a>
<a href="#" class="char_left_title">健康 儿童</a>
<a href="#" class="char_left_title">耳机 音箱</a>
<a href="#" class="char_left_title">生活 箱包</a>
</div>
<div class="char_right">
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</div>
</div>
<div class="foot">
<div class="foot_left">
<a href="#" class="foot_left_a">保障服务</a>
<a href="#" class="foot_left_a">企业团购</a>
<a href="#" class="foot_left_a">F码通道</a>
<a href="#" class="foot_left_a">米粉卡</a>
<a href="#" class="foot_left_a">以旧换新</a>
<a href="#" class="foot_left_a">话费充值</a>
</div>
<ul class="foot_right">
<li class="foot_ultra"></li>
<li class="foot_fold"></li>
<li class="foot_3"></li>
</ul>
</div>
<div class="K40"></div>
</div>
</body>
</html>
* {
list-style: none;
text-decoration: none;
padding: 0;
margin: 0;
}
.nav_a {
color: #b0b0b0;
font-size: 12px;
margin-right: 3px;
}
.nav_a:hover {
color: #fff;
}
span {
color: #40423e;
}
.one {
width: 1266px;
margin: 0 auto;
}
.nav {
height: 40px;
line-height: 40px;
background-color: #333333;
border-bottom: 2px solid #333333;
}
.nav_left {
float: left;
}
.nav_right {
float: right;
}
.cart {
display: inline-block;
width: 100px;
height: 36px;
color: #b0b0b0;
font-size: 12px;
text-align: center;
background: url(images/购物车空.png) no-repeat;
background-size: 20%;
background-position: 16px 10px;
}
.cart:hover {
background-color: #424242;
}
.con {
width: 1266px;
height: 100px;
line-height: 100px;
}
.logo_box {
float: left;
margin-top: 22px;
margin-right: 185px;
}
.logo {
display: block;
width: 56px;
height: 56px;
background: url(images/logo.png) no-repeat;
background-size: 56px;
}
.logo_a {
display: inline-block;
color: #333333;
padding: 0 10px;
}
.logo_a:hover {
color: blue;
}
.search_box {
position: relative;
float: right;
}
.search {
position: absolute;
top: 26px;
right: 53px;
width: 245px;
height: 50px;
border: 1px solid #e0e0e0;
}
.btn {
position: absolute;
top: 26px;
right: 0;
display: inline-block;
width: 52px;
height: 50px;
border: 1px solid #e0e0e0;
background: url(images/搜索.png) no-repeat #fff;
background-size: 50%;
background-position: 15px 11px;
}
.btn:hover {
background-color: blue;
}
.char {
width: 1266px;
height: 475px;
}
.char_left {
float: left;
width: 234px;
height: 440px;
padding-top: 20px;
background-color: #b0b0b0;
}
.char_left_title {
display: inline-block;
width: 202px;
height: 42px;
padding-left: 32px;
color: #fff;
line-height: 42px;
background: url(images/右箭头.png) no-repeat;
background-size: 8%;
background-position: 200px 14px;
background-color: #b0b0b0;
}
.char_left_title:hover {
background-color: orangered;
}
.char_right {
position: relative;
float: left;
width: 1032px;
height: 460px;
background: url(images/xiaomi11.jpg) no-repeat;
background-size: 119%;
background-position: 100% 0;
}
.char_right ul {
position: absolute;
right: 33px;
bottom: 18px;
}
.char_right ul li {
display: inline-block;
width: 10px;
height: 10px;
background-color: #484848;
border: 2px solid #5e5e5e;
border-radius: 10px;
}
.char_right ul li:hover {
background-color: #fff;
}
.foot {
width: 1266px;
height: 188px;
}
.foot_left {
float: left;
width: 234px;
height: 169.97px;
background-color: #5f5750;
}
.foot_left_a {
display: inline-block;
width: 74.8px;
height: 85px;
color: #c3c0bd;
font-size: 12px;
line-height: 120px;
text-align: center;
background: url(images/时间.png) no-repeat;
background-size: 50%;
background-position: 20px 11px;
}
.foot_right li {
float: right;
display: inline-block;
width: 315.99px;
height: 170px;
margin-left: 28px;
}
.foot_right .foot_ultra {
background: url(images/小米11ultra.jpg) no-repeat;
background-size: 100%;
}
.foot_right .foot_fold {
background: url(images/mix\ fold.jpg) no-repeat;
background-size: 100%;
}
.foot_right .foot_3 {
background: url(images/Redmi\ Buds\ 3.jpeg) no-repeat;
background-size: 100%;
}
.K40 {
width: 1266px;
height: 120px;
background: url(images/K40.jpg) no-repeat;
background-size: 100%;
}