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

后端 未结 3 580
栀梦
栀梦 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:59

    to set the height of table, you need to first set css property "display: block" then you can add "width/height" properties. I find this Mozilla Article a very good resource to learn how to style tables : Link

提交回复
热议问题