cloud-ui.vusion
Version:
Vusion Cloud UI
61 lines (59 loc) • 1.27 kB
CSS
.table {
border: none;
position: relative;
width: 100%;
background: white;
word-break: keep-all;/* 不换行 */
white-space: nowrap;/* 不换行 */
table-layout: fixed;
}
.table td {
color: #999;
white-space: nowrap;
}
.table th, .table td {
position: relative;
vertical-align: middle;
box-sizing: border-box;
line-height: 20px;
padding: 13px 0 13px 10px;
width: auto;
}
.table thead > tr {
background-color: #f5f7fa;
border-bottom: 1px solid #ebf0f5;
background-clip: padding-box;
}
.table thead > tr > th {
text-align: left;
font-weight: normal;
}
.table tbody tr {
border-top: 1px solid #ebf0f5;
}
.table tbody > tr:first-child {
border-top: none;
}
.table tbody > tr:last-child {
border-bottom: 1px solid #ebf0f5;
}
.table tbody > tr:hover > td::before {
content: "";
width: 100%;
height: 6px;
position: absolute;
top: -6px;
left: 0;
background: url("../assets/images/shadow-up.png") repeat-x;
z-index: 100;
}
.table tbody > tr:hover > td::after {
content: "";
width: 100%;
height: 6px;
position: absolute;
bottom: -6px;
left: 0;
background: url("../assets/images/shadow-down.png") repeat-x;
z-index: 100;
}