table tbody {
display: block;
height: 195px;
overflow-y: scroll;
}
table thead, tbody tr {
display: table;
width: 100%;
table-layout: fixed;
}
table thead {
width: calc( 100% - 1em );
}
table thead th {
background: #ccc;
}
table tbody {
display: block;
height: 195px;
overflow-y: scroll;
}
table thead, tbody tr {
display: table;
width: 100%;
table-layout: fixed;
}
table thead {
width: calc( 100% - 1em );
}
table thead th {
background: #ccc;
}
转载于:https://www.cnblogs.com/FInerProgrammer/p/7071012.html