How to get table cells evenly spaced?

前端 未结 8 1945
长发绾君心
长发绾君心 2020-12-09 15:01

I\'m trying to create a page with a number of static html tables on them.

What do I need to do to get them to display each column the same size as each other column

8条回答
  •  悲哀的现实
    2020-12-09 15:17

    Take the width of the table and divide it by the number of cell ().

    PerformanceTable {width:500px;}    
    PerformanceTable.td {width:100px;}
    

    If the table dynamically widens or shrinks you could dynamically increase the cell size with a little javascript.

提交回复
热议问题