P粉5292450502023-09-06 12:54:19
When inspecting the elements, I can see padding: 6px 16px;
on the th
and td
elements. So the extra gap is actually correct as it is applied to both header cells and row cells
You can change the header cell gap by just setting padding:0
or any value:
border: "none", borderCollapse: "collapse", margin: 0, padding: 0,
But you must also do the same with the row cells to keep them aligned.