我在表格中的边框之间有一些空隙。
我无法弄清楚原因,一直尝试使用负边距使它们重叠在一起,但是边距不起作用。
由于这是一个表格,所以td
和th
都有左边框。
但是,侧边框和上/下边框之间也有空隙。
这里是我创建的示例。
一些表格CSS。
.profile-table {
height: 100%;
}
.profile-table td {
text-align: center;
border-right: 1px solid #ccc;
font-size: 1.2em;
}
.profile-table th {
text-align: center;
border-right: 1px solid #ccc;
width: 100px;
}
.profile-table tr{
}
.profile-table *:last-child{
border: none;
}