设为首页 加入收藏

TOP

Responsive design for tables(二)
2015-07-20 17:46:40 来源: 作者: 【 】 浏览:10
Tags:Responsive design for tables

}
/* White bg, large blue text for rank and title */
.responsive-table tbody th,
.responsive-table tbody td.title {
display: block;
font-size: 15px;
line-height: 110%;
padding: .5em .5em;
background-color: #EEF1F2;
color: #779665;
}
/* White bg, large blue text for rank and title */
.responsive-table tbody th,
.responsive-table tbody td.title a{
color: white;
}
/* Hide labels for rank and title */
.responsive-table tbody th .ui-table-cell-label,
.responsive-table tbody td.title .ui-table-cell-label {
display: none;
}
/* Position the title next to the rank, pad to the left */
.responsive-table tbody td.title {
margin-top: 0;
padding-left: 10px;
border-bottom: 1px solid rgba(0,0,0,.15);
}

table tbody tr:nth-child(2n) td {
border-bottom: 1px solid rgba(0,0,0,.15);
}

table tbody tr:nth-child(2n) td:last-child {
border-bottom: none;
}

/* Make the data bold */
.responsive-table th,
.responsive-table td {
font-weight: bold;
}
/* Make the label elements a percentage width */
.responsive-table td .ui-table-cell-label,
.responsive-table th .ui-table-cell-label {
min-width: 20%;
}





}




@media ( max-width: 767px ) {
.responsive-table td,
.responsive-table th {
width: 100%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
float: left;
clear: left;
}
}




.responsive-table td .ui-table-cell-contentInline {
display: inline-block
}





前台HTML代码如下:




























@foreach (var e in @Model.Events) { @if (e.HasLink) { } else { } }
Date Description Category Points

Date
@e.DateForDisplay

Description


Description
@e.Description

Category
Earn

Points
@e.Value








首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇EasyUI实现异步加载tree(整合Stru.. 下一篇POJ 1741 Tree 树形DP(分治)

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·新书介绍《Python数 (2025-12-25 04:49:47)
·怎么利用 Python 进 (2025-12-25 04:49:45)
·金融界大佬力荐,Pyt (2025-12-25 04:49:42)
·你必须要弄懂的多线 (2025-12-25 04:22:35)
·如何在 Java 中实现 (2025-12-25 04:22:32)