减少表格HTML中2行之间的垂直空间 [英] Reduce vertical space between 2 rows in a table HTML
本文介绍了减少表格HTML中2行之间的垂直空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个包含多行的表,例如五行。我需要缩小第三排和第四排之间的差距。
以下是我的代码:
结果是
第一名
第二名
第三名3
第四名4
我想要消除第三和第四行之间的差距,如下所示:
优先1
秒2
第三名3
第四名4
是否可以设置第三行和第四行之间的填充只有0?减少他们之间的差距?而不是在所有行之间。
第一行 | 1 |
第二行 | < td> 2|
第三行 | 3 |
第四行 | 4 |
解决方案
这就是你所需要的: http://www.w3.org/TR/CSS2/box.html [ ^ ]。
-SA
I have a table with multiple rows, for example five rows. I need to reduce the gap between the third and fourth rows.
Below is my code:
The result is
First 1
Second 2
Third 3
Fourth 4
I want to remove the gap between the third and fourth rows as below:
First 1
Second 2
Third 3
Fourth 4
Is it possible to set the padding between third and fourth row only to 0? to reduce the gap between them? and not between all the rows.
First Row | 1 |
Second Row | 2 |
Third Row | 3 |
Fourth Row | 4 |
解决方案
This is all you need: http://www.w3.org/TR/CSS2/box.html[^].
—SA
这篇关于减少表格HTML中2行之间的垂直空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文