Name: border-collapse Syntax: Value: collapse: Adjacent edges are merged Code: Code: The above is the detailed content of Detailed explanation of the use of css border-collapse. For more information, please follow other related articles on the PHP Chinese website!
Category: Table
## Brief description: Set whether the edges of rows and cells are merged
Overview: border-collapse is to set whether there is a distance between the rows or of the table Style, the distance between and can be achieved by border="xxx" and cellspacing="xxx" in the table. In other words, when border-collapse is set to collapse, the border and cellspacingproperties of the table itself have no effect.
border-collapse : separate | collapse
Display effect: <table
width
="200" border="1" cellspacing="3" cellpadding="2" style="border-collapse:collapse">
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
Example 2: <table width="200" border="1" cellspacing="3" cellpadding="2" style="border-collapse: separate">
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>