CSS:Tutorial four
1、CSS Tables
To specify table borders in CSS, use the border property.
The example below specifies a black border for <table>, <th>, and <td> elements:
table, th, td { border: 1px solid black; }
Collapse Table Borders
The border-collapse property sets whether the table borders should be collapsed into a single border:
table { border-collapse: collapse; } table, th, td { border: 1px solid black; }


浙公网安备 33010602011771号