效果图
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="css/4.20.1css.css">
</head>
<body>
<header>
<a href="" class="header_left">风格</a>
<div class="header_right">
<a href="" class="box">全部</a>
<span>|</span>
<a href="">现代风格</a>
<span>|</span>
<a href="">欧式风格</a>
<span>|</span>
<a href="">美式风格</a>
<span>|</span>
<a href="">法式风格</a>
<span>|</span>
<a href="">新古典风格</a>
<span>|</span>
<a href="">中式风格</a>
<span>|</span>
<a href="">地中海风格</a>
<span>|</span>
<a href="">东南亚风格</a>
<span>|</span>
<a href="">田园风格</a>
<span>|</span>
<a href="">混搭风格</a>
<span>|</span>
<a href="">北欧风格</a>
<span>|</span>
<a href="">港式风格</a>
<span>|</span>
<a href="">极简风格</a>
<span>|</span>
</div>
</header>
<div class="intro">
<div class="product">
<img src="images/pic01.png" alt="" width="255px" height="180px">
<div class="detall">
<a href="">渝高香洲</a>
<span class="center">|</span>
<a href=""><img src="images/like.png"></a>
<span>1228</span>
</div>
</div>
<div class="product">
<img src="images/pic02.png" alt="" width="255px" height="180px">
<div class="detall">
<a href="">龙湖江与城</a>
<span class="center">|</span>
<a href=""><img src="images/like.png"></a>
<span>2269</span>
</div>
</div>
<div class="product">
<img src="images/pic03.png" alt="" width="255px" height="180px">
<div class="detall">
<a href="">南山郡</a>
<span class="center">|</span>
<a href="" ><img src="images/like.png"></a>
<span>2320</span>
</div>
</div>
<div class="product product4">
<img src="images/pic04.png" alt="" width="255px" height="180px">
<div class="detall">
<a href="">约克郡·悦水岸</a>
<span class="center">|</span>
<a href="" ><img src="images/like.png"></a>
<span>3153</span>
</div>
</div>
<div class="product">
<img src="images/pic05.png" alt="" width="255px" height="180px">
<div class="detall">
<a href="">华润二十四城</a>
<span class="center">|</span>
<a href="" ><img src="images/like.png"></a>
<span>2808</span>
</div>
</div>
<div class="product">
<img src="images/pic06.png" alt="" width="255px" height="180px">
<div class="detall">
<a href="">金科美的郡</a>
<span class="center">|</span>
<a href=""><img src="images/like.png"></a>
<span>3067</span>
</div>
</div>
<div class="product">
<img src="images/pic07.png" alt="" width="255px" height="180px">
<div class="detall">
<a href="">南滨特区</a>
<span class="center">|</span>
<a href=""><img src="images/like.png"></a>
<span>3367</span>
</div>
</div>
<div class="product product8">
<img src="images/pic08.png" alt="" width="255px" height="180px">
<div class="detall">
<a href="">皮隆高尔夫山外山</a>
<span class="center">|</span>
<a href=""><img src="images/like.png"></a>
<span>2446</span>
</div>
</div>
</div>
<div class="teil">+MORE</div>
<div class="btn">
<a></a>
<a class="btn_right"></a>
</div>
</body>
</html>
CSS
body{
margin: 0;
}
*{
font-family: '微软雅黑';
}
a{
text-decoration: none;
color: #666;
}
header{
width: 1080px;
overflow: hidden;
margin: auto;
margin-top: 15px;
}
.header_left{
float: left;
width: 90px;
height: 28px;
border-radius: 28px;
display: block;
background-color: rgb(41, 44, 73);
font-size: 14px;
color: white;
text-decoration: none;
text-align: center;
line-height: 28px;
}
.header_right{
float: left;
margin-left: 27px;
font-size: 14px;
height: 28px;
line-height: 28px;
}
.header_right a:hover{
color: rgb(117, 60, 57);
}
.header_right span{
color: #666;
}
.header_right .box{
color:rgb(117, 60, 57) ;
}
.intro{
width: 1080px;
margin: auto;
margin-top: 25px;
overflow: hidden;
}
.product{
width: 255px;
float: left;
margin-right: 15px;
}
.product4 .product8{
margin-right: 0;
}
.detall{
width: 255px;
height: 50px;
}
.detall a{
display: block;
}
.detall span,.detall a {
float: left;
text-align: center;
line-height: 50px;
margin-left: 15px;
}
.teil{
width: 1080px;
height: 50px;
margin: auto;
text-align: center;
line-height: 50px;
font-size: 18px;
color: #666;
background-color:rgb(212, 212, 212);
}
.btn{
width: 40px;
height: 20px;
position: fixed;
bottom: 5px;
left: 49%;
}
.btn a{
display: block;
width: 18px;
height:19px;
float: left;
background-image: url(../images/more.png);
}
.btn .btn_right{
background-position: -18px 0;
}