小米商城
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>小米商城</title>
<style type="text/css">
*{
padding: 0px;
margin: 0px;
}
.topBar{
width: 100%;
height: 40px;
background-color: #333;
}
.container1{
width: 1226px;
/*background-color: yellow;*/
margin: 0 auto;
}
.topBar-nav{
float: left;
width: 375px;
height: 40px;
background-color: red;
}
.user-info{
float: right;
width: 140px;
height: 40px;
background-color: #FC8348;
margin-right: 15px;
}
.topBar-cart{
float: right;
width: 140px;
height: 40px;
background-color: green;
}
.header{
width: 100%;
height: 110px;
}
.container2{
width: 1226px;
height: 110px;
margin: 0 auto;
}
.logo{
margin-top: 22px;
float: left;
width: 62px;
height: 55px;
background-color: #E766EA;
}
.nav{
float: left;
width: 780px;
height: 110px;
background-color: yellow;
}
.search{
float: right;
width: 296px;
height: 50px;
background-color: purple;
margin-top: 25px;
}
.content{
width: 1226px;
height: 460px;
margin: 0 auto;
/*background-color: red;*/
}
.content-list{
float: left;
width: 234px;
height: 460px;
background-color: #1971FE;
}
.lunbo{
float: left;
width: 992px;
height: 460px;
background-color: #FD8008;
}
</style>
</head>
<body>
<div class="topBar">
<div class="container1">
<div class="topBar-nav">导航条</div>
<div class="topBar-cart">购物车</div>
<div class="user-info">用户登录</div>
</div>
</div>
<div class="header">
<div class="container2">
<div class="logo">logo</div>
<div class="nav">导航</div>
<div class="search">搜索框</div>
</div>
</div>
<div class="content">
<div class="content-list">
</div>
<div class="lunbo"></div>
</div>
</body>
</html>