index.html:
<body>
<div>
<header>
<div class="logo">
<img src="./images/logo.png" alt="">
</div>
<nav>
<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>
</ul>
</nav>
<div class="icon">
<img src="./images/icon.png" alt="">
<div class="mark">2</div>
</div>
</header>
<div class="img">
<img src="./images/girl.jpg" alt="">
</div>
<div class="text">
<h1>私人订制,纯手工打造</h1>
<p>精选优选自中国新疆阿克苏的高纯白棉花制造的面料,来自英国服装设计大量大卫团队精心设计,时尚而又舒适</p>
</div>
<div class="photo">
<div class="img1">
<p>男装</p>
<img src="./images/p1.jpg" alt="">
</div>
<div class="img1">
<p>推荐</p>
<img src="./images/p2.jpg" alt="">
</div>
<div class="img1">
<p>首页</p>
<img src="./images/p3.jpg" alt="">
</div>
<div class="img1">
<p>特价</p>
<img src="./images/p4.jpg" alt="">
</div>
<div class="img1">
<p>箱包</p>
<img src="./images/p5.jpg" alt="">
</div>
<div class="img1">
<p>女装</p>
<img src="./images/p6.png" alt="">
</div>
</div>
<div class="fashion">
<h1>今年流行</h1>
</div>
<div class="clothes">
<ul>
<li>
<div class="special">特价</div>
<img src="./images/c1.jpg" alt="">
<p>连衣裙</p>
<h4>弹力针织连衣裙</h4>
<p><del>199.00</del> <span>99.00</span></p>
</li>
<li>
<img src="./images/c2.jpg" alt="">
<p>衬衫</p>
<h4>蓝色衬衫</h4>
<p>189.00</p>
</li>
<li>
<img src="./images/c3.jpg" alt="">
<p>T恤衫</p>
<h4>埃米特电缆T恤</h4>
<p>139.00</p>
</li>
<li>
<div class="sell_out">售罄</div>
<img src="./images/c4.jpg" alt="">
<p>连衣裙</p>
<h4>红色吊带裙</h4>
<p>269.00</p>
</li>
<li>
<img src="./images/c5.jpg" alt="">
<p>T恤衫</p>
<h4>绿色村庄T恤</h4>
<p>109.00</p>
</li>
<li>
<img src="./images/c6.jpg" alt="">
<p>箱包</p>
<h4>蓝色嬉皮背包</h4>
<p>300.00</p>
</li>
<li>
<div class="special">特价</div>
<img src="./images/c7.jpg" alt="">
<p>连衣裙</p>
<h4>弹力羊毛连衣裙</h4>
<p><del>160.00</del> <span>99.00</span></p>
</li>
<li>
<img src="./images/c8.jpg" alt="">
<p>连衣裙</p>
<h4>蓝色性感裙子</h4>
<p>88.00</p>
</li>
</ul>
</div>
<div class="introduce">
最新时装介绍
</div>
<div class="sentence">
<ul>
<li>
<img src="./images/s1.jpg" alt="">
<div>
<h4>穿着自己最喜爱的时尚衣服去喝咖啡,咖啡的味道如此美好...</h4>
<p>2018-7-16</p>
</div>
</li>
<li>
<img src="./images/s2.jpg" alt="">
<div>
<h4>穿着自己最喜爱的时尚衣服去看大海大海是如此的美好...</h4>
<p>2018-7-16</p>
</div>
</li>
<li>
<img src="./images/s3.jpg" alt="">
<div>
<h4>穿着自己最喜爱的时尚衣服去户外生活是如此的美好...</h4>
<p>2018-7-16</p>
</div>
</li>
</ul>
</div>
<div class="register">
<h1>注册送大礼</h1>
<p>
注册我们网站的新用户,我们将送一份礼物给你,你只需注册后留下地址和手机号码即可
</p>
<div class="email">
<input type="text" placeholder="您的邮箱">
<input type="button" value="订阅">
</div>
</div>
<div class="foot">
<div class="address">
© 2018 Copyright fengcolor.com
All Rights Reserved.
<p class="p1">020-8525866 info@fengcolor.com</p>
<p class="p2">中国<br>
广州市白云区丰彩服装定制工作室<br>
510000</p>
</div>
<div>
<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>
</ul>
</div>
<div>
<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>
</ul>
</div>
<div class="code">
<img src="./images/code.png" alt="">
</div>
</div>
</div>
</body>
index.css:
* {
margin: 0;
padding: 0;
}
a {
text-decoration: none;
color: #000;
}
ul li {
list-style: none;
}
body {
width: 1400px;
margin: 0 auto;
}
header {
width: 100%;
height: 88px;
background-color: #fff;
}
header .logo,nav {
float: left;
}
header .logo {
float: left;
margin: 27px 0 0 62px;
}
header nav {
margin-left: 370px;
}
nav ul li {
float: left;
width: 88px;
color: #888888;
line-height: 88px;
}
nav ul li a:hover{
color: red;
}
header .icon {
position: relative;
float: right;
width: 48px;
height: 48px;
margin-right: 30px;
margin-top: 20px;
border: 1px solid #e3e3e3;
border-radius: 50%;
text-align: center;
line-height: 48px;
}
header .icon .mark {
position: absolute;
right: -4px;
top: -2px;
width: 19px;
height: 19px;
background-color: red;
border-radius: 50%;
text-align: center;
line-height: 19px;
font-size: 12px;
color: #ffffff;
}
.img {
position: relative;
width: 100%;
height: 865px;
}
.img::before,.img1::before {
content: '';
display: none;
position: absolute;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.2);
}
.img:hover::before,.img1:hover::before{
display: block;
}
.text {
width: 100%;
height: 422px;
box-sizing: border-box;
padding-top: 118px;
text-align: center;
}
.text h1 {
font-size: 64px;
}
.text p {
width: 741px;
margin: 44px auto;
font-size: 23px;
color: #7e7e7e;
}
.photo {
width: 100%;
overflow: hidden;
}
.photo .img1{
float: left;
position: relative;
height: 350px;
text-align: center;
line-height: 350px;
margin: 5px;
}
.img1 p {
position: absolute;
top: 2%;
left: 45%;
font-size: 28px;
font-weight: bold;
color: #fff;
}
.fashion {
height: 217px;
width: 100%;
text-align: center;
line-height: 217px;
}
.fashion h1 {
font-size: 60px;
letter-spacing: 10px;
}
.clothes {
height: 1000px;
width: 100%;
/* background-color: aquamarine; */
}
.clothes ul {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
.clothes ul li {
width: 23%;
height: 486px;
position: relative;
text-align: center;
}
.clothes ul li div {
position: absolute;
left: -10px;
top: -10px;
width: 61px;
height: 61px;
border-radius: 50%;
text-align: center;
line-height: 61px;
}
.special {
border: 1px solid red;
color: red;
}
.sell_out {
border: 1px solid #41cae8;
color: #41cae8;
}
.clothes ul li h4 {
font-size: 24px;
font-weight: 500;
}
.clothes ul li p {
color: #7e7e7e;
font-size: 18px;
}
.clothes ul li span {
color: red;
}
.introduce {
width: 1386px;
height: 107px;
margin: 10px auto;
background-color: #f2f2f2;
line-height: 107px;
font-weight: bold;
text-align: center;
font-size: 29px;
}
.sentence ul {
display: flex;
justify-content: space-around;
}
.sentence ul li {
position: relative;
}
.sentence ul li div {
position: absolute;
top: 50px;
padding: 0 70px;
color: #fff;
}
.sentence ul li div h4{
font-weight: 400;
margin-bottom: 10px;
}
.register {
height: 456px;
width: 1386px;
box-sizing: border-box;
margin: 10px auto;
padding: 88px 270px;
background-color: #f2f2f2;
text-align: center;
}
.register h1 {
font-size: 59px;
}
.register p {
font-size: 24px;
margin-top: 33px;
margin-bottom: 45px;
letter-spacing: 3px;
}
.register .email {
position: relative;
width: 562px;
height: 60px;
padding-left: 10px;
box-sizing: border-box;
border-radius: 30px;
margin: 0 auto;
background-color: #fff;
}
.register .email input[type=text]{
width: 500px;
height: 100%;
border: none;
outline: none;
border-radius: 30px;
font-size: 24px;
}
.register .email input::placeholder {
color: #7e7e7e;
}
.register .email input[type=button]{
position: absolute;
top: 5px;
right: 8px;
width: 170px;
height: 50px;
margin: auto;
border-radius: 25px;
background-color: #eb1f1f;
color: #fff;
border: none;
font-size: 24px;
}
.foot {
display: flex;
justify-content: space-around;
height: 312px;
width: 1386px;
box-sizing: border-box;
margin: 10px auto;
padding: 84px 48px;
background-color: #000;
color: #fff;
}
.foot a{
color: #fff;
}
.foot .address {
width: 285px;
height: 161px;
}
.foot .address p {
margin-top: 10px;
}
.foot .address .p2 {
color: #7e7e7e;
}
.foot ul {
margin-top: 20px;
}