HTML表需要在列之间而不是行之间的间距 [英] HTML table needs spacing between columns, not rows
本文介绍了HTML表需要在列之间而不是行之间的间距的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个HTML表. 我需要在表列之间有间距,但在表行之间没有间距.
I have an HTML table. I need to have spacing between the table columns, but not the table rows.
如果我使用cellspacing
CSS属性,它将在行和列之间进行操作.我也不能在自己的工作中使用CSS.我需要使用纯HTML.
If I use the cellspacing
CSS property it does it between both rows and columns. I also cannot use CSS in what I doing. I need to use pure HTML.
推荐答案
如果可以使用内联样式,则可以在每个td
上设置左右填充.或者在列和列之间使用额外的td
按照@rene的建议,设置一些不间断的空格.
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.
两者都很丑陋; p css ftw
Both are pretty ugly ;p css ftw
这篇关于HTML表需要在列之间而不是行之间的间距的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文