leoyi520

移动端的个人中心列表

移动端一定会有的个人中心列表。关键是要和bootstrap一起使用!!

移动端的个人中心列表 - qq330168885 - 琉忆光年的博客

 

CSS:

.icon{
display: inline-block;
width:24px;
height: 24px;
margin-top: 6px;
margin-right: 5px;
padding: 3px 0;
}
.icon-1{
background: url('../images/g_22.jpg')no-repeat;
}
.icon-2{
background: url('../images/g_25.jpg')no-repeat;
}
.icon-3{
background: url('../images/g_28.jpg')no-repeat;
}
.icon-4{
background: url('../images/g_30.jpg')no-repeat;
}
.icon-5{
background: url('../images/g_32.jpg')no-repeat;
}
.personList{
height:35px;
line-height: 35px;
}
.personList div{
margin-bottom: 10px;
border-top: 1px solid #eee;
border-bottom: 1px solid #eee;
}
.personList div a{
display: block;
width: 100%;
height: 100%;
color:#999;
text-decoration: none;
}
.personList h3{
color: #666;
font-size: 14px;
font-weight: normal;
float: left;
padding-top: 10px;
}
.rightAll{
float: right;
color: #ccc;
}

HTML:

<div class="row personList">
<div class="col-xs-12 clear">
<span class="icon icon-1 fl"></span>
<h3 class="fl"><a href="#">我的订单</a></h3>
<span class="fr rightAll">></span>
</div>
<div class="col-xs-12 bg-white clear">
<span class="icon icon-2 fl"></span>
<h3 class="fl"><a href="#">购买记录</a></h3>
<span class="fr rightAll">></span>
</div>
<div class="col-xs-12 bg-white clear">
<span class="icon icon-3 fl"></span>
<h3 class="fl"><a href="#">地址管理</a></h3>
<span class="fr rightAll">></span>
</div>
<div class="col-xs-12 bg-white clear">
<span class="icon icon-4 fl"></span>
<h3 class="fl"><a href="#">我的收藏</a></h3>
<span class="fr rightAll">></span>
</div>
<div class="col-xs-12 bg-white clear">
<span class="icon icon-5 fl"></span>
<h3 class="fl"><a href="#">我的评价</a></h3>
<span class="fr rightAll">></span>
</div>

</div>


评论