CSS3 display:table, overflow-y:scroll doesn't work

前端 未结 2 1691
执笔经年
执笔经年 2021-02-20 15:08

I have a data table that needs to scroll vertically. It seems that if your display value is table, you cannot set a height or max-height, and

2条回答
  •  遥遥无期
    2021-02-20 15:35

    Wrap your .fake-table in a div?

    CodePen

    Also, it is 100% acceptable to use actual

    's for displaying tabular data... actually it's preferred. Its using tables for layout when things get hairy.

    提交回复
    热议问题