<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns ="http://www.w3.org/1999/xhtml" >
<head >
<meta http-equiv ="Content-Type" content ="text/html; charset=utf-8" />
<title > 商品展示列表</title >
<link rel ="stylesheet" type ="text/css" href ="css/style.css" />
</head >
<body >
<div class ="box" >
<ul >
<li >
<h1 > 新品</h1 >
<a href ="#" >
<img src ="images/pms_1472177415.40899754.jpg" alt ="小米手机" width ="150px" height ="150px" />
</a >
<h2 > 红米note标准高透贴膜</h2 >
<h3 > 18元</h3 >
<p > 5327人评价</p >
<div class ="hidden" >
<h4 > 透光性很强,值得拥有</h4 >
<h5 > 来自大海的评价</h5 >
</div >
</li >
<li >
<h1 > 新品</h1 >
<a href ="#" >
<img src ="images/T1jsDgBXdv1RXrhCrK.jpg" alt ="小米手机" width ="150px" height ="150px" />
</a >
<h2 > 小米手机5智能翻盖保护套</h2 >
<h3 > 49元</h3 >
<p > 1.9万人评价</p >
<div class ="hidden" >
<h4 > 透光性很强,值得拥有</h4 >
<h5 > 来自大海的评价</h5 >
</div >
</li >
<li >
<h1 > 新品</h1 >
<a href ="#" >
<img src ="images/T1y7JQBbCT1RXrhCrK.jpg" alt ="小米手机" width ="150px" height ="150px" />
</a >
<h2 > 小米Max高透贴膜</h2 >
<h3 > 19元</h3 >
<p > 9754人评价</p >
<div class ="hidden" >
<h4 > 透光性很强,值得拥有</h4 >
<h5 > 来自大海的评价</h5 >
</div >
</li >
<li >
<h1 > 新品</h1 >
<a href ="#" >
<img src ="images/T18EWQBjWT1RXrhCrK.jpg" alt ="小米手机" width ="150px" height ="150px" />
</a >
<h2 > 红米Pro智能显示保护套</h2 >
<h3 > 29元</h3 >
<p > 1245人评价</p >
<div class ="hidden" >
<h4 > 透光性很强,值得拥有</h4 >
<h5 > 来自大海的评价</h5 >
</div >
</li >
<li >
<h1 > 新品</h1 >
<a href ="#" >
<img src ="images/pms_1472177415.40899754.jpg" alt ="小米手机" width ="150px" height ="150px" />
</a >
<h2 > 红米note标准高透贴膜</h2 >
<h3 > 18元</h3 >
<p > 5327人评价</p >
<div class ="hidden" >
<h4 > 透光性很强,值得拥有</h4 >
<h5 > 来自大海的评价</h5 >
</div >
</li >
<li >
<h1 > 新品</h1 >
<a href ="#" >
<img src ="images/T1jsDgBXdv1RXrhCrK.jpg" alt ="小米手机" width ="150px" height ="150px" />
</a >
<h2 > 小米手机5智能翻盖保护套</h2 >
<h3 > 49元</h3 >
<p > 1.9万人评价</p >
<div class ="hidden" >
<h4 > 透光性很强,值得拥有</h4 >
<h5 > 来自大海的评价</h5 >
</div >
</li >
<li >
<h1 > 新品</h1 >
<a href ="#" >
<img src ="images/T1y7JQBbCT1RXrhCrK.jpg" alt ="小米手机" width ="150px" height ="150px" />
</a >
<h2 > 小米Max高透贴膜</h2 >
<h3 > 19元</h3 >
<p > 9754人评价</p >
<div class ="hidden" >
<h4 > 透光性很强,值得拥有</h4 >
<h5 > 来自大海的评价</h5 >
</div >
</li >
<li >
<a href ="#" class ="moreProduct" > <img src ="images/T1zTKgBmhv1RXrhCrK.jpg" width ="80px" height ="80px" /> </a >
<p class ="more" > 浏览更多</p >
</li >
</ul >
</div >
</body >
</html >
@charset "utf-8" ;
*{
margin :0 ;
padding :0 ;
font-family :"微软雅黑" ;
}
body {
width :100 %;
height :auto;
background :#f1f1f1 ;
}
.box {
width :1100 px;
height :700 px;
border :solid 1 px #eee ;
margin :20 px auto;
box-shadow : 2 px 2 px #eee ;
}
.box ul li {
width :240 px;
height :310 px;
background :#fff ;
list-style :none;
margin-left :20 px;
float :left ;
position :relative;
overflow :hidden;
transition :all 0.3 s ease;
margin-top :20 px;
}
.box ul li h1 {
font-size :16 px;
width :42 px;
height :26 px;
text-align :center;
display :block;
background :#F44336 ;
color :#fff ;
font-weight :normal;
line-height :26 px;
margin :0 auto;
}
.box ul li a {
padding :20 px 45 px;
display :block;
}
.box ul li h2 {
font-size :14 px;
font-weight :normal;
text-align :center;
}
.box ul li h3 {
font-size :16 px;
font-weight :normal;
text-align :center;
margin-top :15 px;
color :#F44336 ;
}
.box ul li p {
font-size :14 px;
font-weight :normal;
text-align :center;
margin-top :15 px;
color :#999 ;
}
.box ul li .hidden {
width :100 %;
height :60 px;
background :#FFAB91 ;
top :310 px;
position :absolute;
transition :all 0.3 s ease;
}
.box ul li .hidden h4 {
font-size :15 px;
font-weight :normal;
color :#fff ;
margin-top :10 px;
text-align :center;
}
.box ul li .hidden h5 {
font-size :13 px;
font-weight :normal;
color :#fff ;
margin-top :8 px;
text-align :center;
}
.box ul li :hover .hidden {
top :250 px;
}
.box ul li :hover {
box-shadow : 0 15 px 30 px rgba(0 ,0 ,0 ,0.2 );
transform :translateY(-5 px); <!--向上移动5px; -->
}
.box ul li p .more {
font-size :20 px;
font-weight :normal;
text-decoration :none;
color :#333 ;
display :block;
text-align :center;
}
.box ul li a .moreProduct {
display :block;
width :80 px;
height :80 px;
margin :30 px auto;
}