Fixed width for table first column

前端 未结 2 1437
借酒劲吻你
借酒劲吻你 2021-02-19 06:17

I have a basic table with scrollable body. Doing that I had to set thead and tbody display:block and I also set the width for th and td.

For some reason the first column

2条回答
  •  鱼传尺愫
    2021-02-19 06:47

    remove your first style rule: display:block from tbody and thead

    By doing this, you are over-riding the table formatting and layout that display:table provides

    thead,
    tbody {
     // display: block;
    }
    

    Fixed

提交回复
热议问题