HTML table needs spacing between columns, not rows

后端 未结 5 1831
南旧
南旧 2021-02-06 20:10

I have an HTML table. I need to have spacing between the table columns, but not the table rows.

If I use the cellspacing CSS property it does it between bot

5条回答
  •  独厮守ぢ
    2021-02-06 20:58

    If you can use inline styling, you can set the left and right padding on each td.. Or you use an extra td between columns and set a number of non-breaking spaces as @rene kindly suggested.

    http://jsfiddle.net/u5mN4/

    http://jsfiddle.net/u5mN4/1/

    Both are pretty ugly ;p css ftw

提交回复
热议问题