📜  垂直滚动表格 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:27.483000             🧑  作者: Mango

代码示例1
thead, tbody { display: block; }

tbody {
    height: 100px;       /* Just for the demo          */
    overflow-y: auto;    /* Trigger vertical scroll    */
    overflow-x: hidden;  /* Hide the horizontal scroll */
}