CSS给table的tbody添加滚动条
table tbody {
height: 200px;
overflow-y: auto;
display: block;
}
table thead,
tbody tr {
display: table;
width: 100%;
}
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
table tbody {
height: 200px;
overflow-y: auto;
display: block;
}
table thead,
tbody tr {
display: table;
width: 100%;
}