首页 > Web开发 > 详细

css漂亮表格样式

时间:2016-01-27 17:02:59      阅读:135      评论:0      收藏:0      [点我收藏+]

    看一下我自定义的漂亮表格效果

    技术分享

 如果你喜欢,他很简单的哟!

    首先,它使用了bootstrap的布局,其他的样式都是自己定义的

     HTML代码如下:

   

<div class="l-panel col-xs-8  purpel">
<div class="l-panel-head ">
<div class="text-left">
<i class="fa fa-gittip l-img"></i>
<span>标题</span>
</div>
</div>
<div class="row">
<h5 class="col-xs-4"><span>数据1:{{ user.f_willReceiveP |currency:‘¥‘}} </span></h5>
<h5 class="col-xs-4"><span>数据2:{{ user.f_averageYield *100}}% </span></h5>
<h5 class="col-xs-4"><span>数据3:{{ user.f_willReceivePI |currency:‘¥‘ }} </span></h5>
<h5 class="col-xs-4"><span>数据4:{{user.planFreezeAmount |currency:‘¥‘ }} </span></h5>
<h5 class="col-xs-4"><span>数据5:{{ user.f_totalInterest |currency:‘¥‘ }} </span></h5>
</div>
</div>

  看看我写的CSS样式

     

.l-panel {
margin-bottom: 2%;
margin-left: 2%;
padding: 15px 30px;
color: #999;
border-radius: 5px;
}

.l-panel .row span {
font-size: 14px;
}

.l-panel-head {
font-size: 24px;
font-weight: bold;
line-height: 60px;
color: #666;
border-bottom: 1px dotted #333;
}

.purpel {
background: #d9edf7;
box-shadow: 0 5px 0 #d6edf5;;
}

.l-img {
width: 40px;
}

.row > h5 {
line-height: 20px;
}

你还可以设置其他背景色:
.green {
background: #dff0d8;
box-shadow: 0 5px 0 #dff0d6;
}

  以及,你喜欢的其他背景色  

  需要注意的是,标题旁的引入LOG图像需要自己正确引入哟~

css漂亮表格样式

原文:http://www.cnblogs.com/qinglingyue/p/5163788.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!