填充HTML表格列,两个边框?
16lz
2021-01-22
Is it possible to add space between columns, but maintain a border on both sides? See the following image:
是否可以在列之间添加空格,但在两边保持边框?见下图:
3 个解决方案
#1
4
One option is using the border-spacing
CSS rule. Something like this:
一种选择是使用边界间距CSS规则。像这样的东西:
table {
border-spacing: 10px 0;
}
Here is a quick example.
这是一个简单的例子。