How to specify table's height such that a vertical scroll bar appears?

后端 未结 3 605
栀梦
栀梦 2020-12-04 15:54

I have a table with many rows on my page. I would like to set table\'s height, say for 500px, such that if the height of the table is bigger than that, a vertical scroll bar

3条回答
  •  醉话见心
    2020-12-04 16:47

    You need to wrap the table inside another element and set the height of that element. Example with inline css:

提交回复
热议问题