Use CSS to control cellspacing and cellpadding. Classification: it-Silbo @ pm
In table
Cellspacing and cellpadding are used to control the spacing between cells. By default, cellspacing and cellpadding are not 0,
In this situation, we often set cellspacing and cellpadding to 0, so we often see "<
Table cellspacing = 0
Cellpadding = 0>"Code. In this way, the size of the Code is virtually increased, and it does not comply with the web standards of style and content separation. For me, it is also extremely
So it is significant to use CSS to control the cellspacing/cellpadding display! The following are the control methods:
Table {border: 0; margin: 0; border-collapse: collapse ;}
Table TD {padding: 0 ;}
The first line controls cellspacing, the key is "border-collapse: collapse;"; the second line controls cellpadding. do few know how to control TD? :)