cellspacing is the distance between cells in the table;
cellpadding is the blank part within the cells in the table; commonly known as outer patch and inner patch, similar to the margin and padding applied to divs and spans. You can try it out and give the cells Add a border and change the values of cellpadding and cellspacing to see what happens. For example: <table> <tr> <td style="cellspacing:10px;cellpadding:10px;border:1px solid #CCCCCC;"> </ td> <td style="cellspacing:10px;cellpadding:20px;border:1px solid #CCCCCC;"> </td> </tr> </table> That is to say: there is a gap between the border of td and the edge of table There is a 10-pixel patch (cellspacing), and the border of td and the inner element of td have a 20-pixel patch (cellpadding). |
How to use two html codes, what they mean, examples cellspacing cellpadding
Guess you like
Origin blog.csdn.net/u012598200/article/details/22850501
Recommended
Ranking