HTML:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>潮流前线</title>
<link rel="stylesheet" type="text/css" href="css/new_file.css"/>
</head>
<body>
<div class="top">
<ul>
<li id="logo"><img src="img/logo.png"/></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 class="container">
<div class="banner">
<img src="img/banner.jpg"/>
</div>
<div class="content">
<!--二维码部分-->
<div class="qrcode">
<h3>联系客服</h3>
<img src="img/qrcode.png"/>
</div>
<!--明星秀场-->
<h1 class="sub-title">明星秀场</h1>
<div class="star-show">
<dl>
<dt><img src="img/s1.jpg"/></dt>
<dd>凌一</dd>
</dl>
<dl>
<dt><img src="img/s2.jpg"/></dt>
<dd>魏二</dd>
</dl>
<dl>
<dt><img src="img/s3.jpg"/></dt>
<dd>王三</dd>
</dl>
<dl>
<dt><img src="img/s4.jpg"/></dt>
<dd>那四</dd>
</dl>
<dl>
<dt><img src="img/s5.jpg"/></dt>
<dd>蒋五</dd>
</dl>
<dl>
<dt><img src="img/s6.jpg"/></dt>
<dd>马六</dd>
</dl>
<dl>
<dt><img src="img/s7.jpg"/></dt>
<dd>宋七</dd>
</dl>
<dl>
<dt><img src="img/s8.jpg"/></dt>
<dd>高八</dd>
</dl>
</div>
<!--精美服饰-->
<h1 class="sub-title">精美服饰</h1>
<div class="product-clothes">
<dl>
<dt>
<img src="img/1-1.jpg"/>
<img src="img/1-2.jpg"/>
</dt>
<dd class="hot"><img src="img/hot.png"/></dd>
<dd>温莎领休闲衬衫</dd>
<hr />
<dd>原价:<span class="price">¥2,800</span></dd>
<dd>现价:<span class="cur-price">¥1,150</span></dd>
<dd><button>立即购买</button></dd>
</dl>
<dl>
<dt>
<img src="img/2-1.jpg"/>
<img src="img/2-2.jpg"/>
</dt>
<dd class="hot"><img src="img/hot.png"/></dd>
<dd>艺术条纹衬衫</dd>
<hr />
<dd>原价:<span class="price">¥2,400</span></dd>
<dd>现价:<span class="cur-price">¥1,820</span></dd>
<dd><button>立即购买</button></dd>
</dl>
<dl>
<dt>
<img src="img/3-1.jpg"/>
<img src="img/3-2.jpg"/>
</dt>
<dd class="hot"><img src="img/hot.png"/></dd>
<dd>英伦格纹休闲衬衫</dd>
<hr />
<dd>原价:<span class="price">¥2,590</span></dd>
<dd>现价:<span class="cur-price">¥1,600</span></dd>
<dd><button>立即购买</button></dd>
</dl>
<dl>
<dt>
<img src="img/4-1.jpg"/>
<img src="img/4-2.jpg"/>
</dt>
<dd class="hot"><img src="img/hot.png"/></dd>
<dd>针织短袖T恤</dd>
<hr />
<dd>原价:<span class="price">¥1,800</span></dd>
<dd>现价:<span class="cur-price">¥1,200</span></dd>
<dd><button>立即购买</button></dd>
</dl>
<dl>
<dt>
<img src="img/5-1.jpg"/>
<img src="img/5-2.jpg"/>
</dt>
<dd class="hot"><img src="img/hot.png"/></dd>
<dd>中长连衣裙</dd>
<hr />
<dd>原价:<span class="price">¥3,500</span></dd>
<dd>现价:<span class="cur-price">¥2,100</span></dd>
<dd><button>立即购买</button></dd>
</dl>
<dl>
<dt>
<img src="img/6-1.jpg"/>
<img src="img/6-2.jpg"/>
</dt>
<dd class="hot"><img src="img/hot.png"/></dd>
<dd>束腰连衣裙</dd>
<hr />
<dd>原价:<span class="price">¥3,800</span></dd>
<dd>现价:<span class="cur-price">¥2,399</span></dd>
<dd><button>立即购买</button></dd>
</dl>
<dl>
<dt>
<img src="img/7-1.jpg"/>
<img src="img/7-2.jpg"/>
</dt>
<dd class="hot"><img src="img/hot.png"/></dd>
<dd>简约手提包</dd>
<hr />
<dd>原价:<span class="price">¥1,500</span></dd>
<dd>现价:<span class="cur-price">¥980</span></dd>
<dd><button>立即购买</button></dd>
</dl>
<dl>
<dt>
<img src="img/8-1.jpg"/>
<img src="img/8-2.jpg"/>
</dt>
<dd class="hot"><img src="img/hot.png"/></dd>
<dd>大边框太阳镜</dd>
<hr />
<dd>原价:<span class="price">¥1,699</span></dd>
<dd>现价:<span class="cur-price">¥1,000</span></dd>
<dd><button>立即购买</button></dd>
</dl>
</div>
<!--专属定制-->
<h1 class="sub-title">专属定制</h1>
<div class="custom">
<div class="card">
<img src="img/custom-card.jpg"/>
<p>专属定制服务:+86-177888899**/+0714-66655**</p>
</div>
<div class="custom-content">
<h1>团体定制</h1>
<p>
创立于1992年的****集团是集研发、生产、品牌管理、服务于一体的大型现代化品牌企业。
27年来集团始终坚持国际化品牌经营理念,现已发展成为一家多品牌、集团化运作的知名时尚品牌企业。
</p>
</div>
</div>
</div>
</div>
<!--页脚模块-->
<div class="footer">
<p>©2019 KEEN,Inc.保留所有权力</p>
<p>分类浏览 - 使用条款 - 销售条款 - 隐私政策 沪ICP备14009339号 上海工商 沪公网安备31011002000177号</p>
</div>
</body>
</html>
CSS:
*{
margin: 0px;
padding: 0px;
list-style: none;
text-align: center;
font-family: "arial black";
}
#logo img{
width: 160px;
height: 60px;
margin-top: 12px;
}
a{
display: inline-block;
height: 80px;
line-height: 80px;
padding: 0 30px;
text-decoration: none;
color: black;
}
.banner img{
width: 1300px;
height: 250px;
}
.top li:hover a{
background: black;
color: white;
}
.top{
position: fixed;
height: 80px;
width: 100%;
min-width: 768px;
background: white;
z-index: 100;
opacity: 0.80;
}
.top li{
float: left;
height: 100%;
}
.top ul{
height: 100%;
padding-left: 130px;
}
.qrcode {
width: 100px;
height: 100px;
position: fixed;
right: 20px;
bottom: 150px;
z-index: 10;
}
.content img{
width: 100%;
}
.content dl{
position: relative;
width: 250px;
float: left;
margin: 20px;
border: 1px solid #ddd;
background: #eee;
}
.sub-title{
clear: both;
background: #eee;
border-bottom: 1px solid brown;
}
.content dt,
.content dt img{
height: 375px;
}
.content dl hr{
border: 0;
border-bottom: 1px solid #ddd;
}
.hot{
position: absolute;
height: 60px;
width: 60px;
left: 0;
top: 0;
}
.star-show dd{
position: absolute;
left: 0;
bottom: 0;
display: inline-block;
width: 100%;
color: white;
background: gray;
opacity: 0.7;
}
.star-show,
.product-clothes{
width: 1200px;
margin: 0 auto;
}
.price{
text-decoration: line-through;
}
.cur-price{
color: red;
}
.product-clothes img{
position: absolute;
left: 0;
top: 0;
}
.product-clothes img:hover{
opacity: 0;
}
.product-clothes button{
width: 100%;
background: white;
border: 1px solid brown;
cursor: pointer;
}
.custom{
clear: both;
background: url(../img/custom-bg.jpg);
margin-bottom: 200px;
position: relative;
height: 350px;
}
.custom .card{
position: absolute;
width: 500px;
top: 100px;
left: 200px;
border: 1px solid #ddd;
background: #eee;
box-shadow: 2px 6px 3px -1px #e2e2e2;
}
.custom .custom-content{
width: 500px;
float: right;
color: white;
margin-top: 80px;
margin-right: 50px;
}
.footer{
clear: both;
background: brown;
color: white;
height: 120px;
line-height: 60px;
}