cellspacing is the distance between cells in the table; Cellpadding is the blank space within a cell in a table; Commonly known as external patches and internal patches, similar to margin and padding applied to div and span You can try it out by adding borders to the cells and changing the values of cellpadding and cellspacing to see what happens. For example : Copy code The code is as follows:<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> This means that there is a 10 pixel patch (cellspacing) between the border of the td and the edge of the table, and a 20 pixel patch (cellpadding) between the border of the td and the inner elements of the td. For more table properties, please refer to : Property ______________Description width______________The width of the table height_____________The height of the table align______________The horizontal position of the table on the page background_________ The background image of the table bgcolor____________The background color of the table border_____________Width of the table border in pixels bordercolor________ table border color bordercolorlight_____The color of the bright part of the table border bordercolordark____The color of the dark part of the table border cellspacing________the spacing between cells cellpadding________The amount of space between the cell content and the cell border |
<<: Interpretation of 17 advertising effectiveness measures
>>: Basic operations on invisible columns in MySQL 8.0
Table of contents 1. Download MySQL 2. Install My...
Download the compressed version of MySQL-5.7.11-w...
Table of contents 1 Problems encountered in trans...
The <abbr> and <acronym> tags represen...
1. Record several methods of centering the box: 1...
Table of contents Install Tomcat with Docker Use ...
Problem Description By configuring nginx, you can...
Table of contents 1. V8 Source 2. V8 Service Targ...
introduce Vue Router is the official routing mana...
Table of contents Preface Motivation for Fragment...
Preface Because computer numbers are floating poi...
Table of contents 1. Easy to use 2. Using generic...
The functions of the three attributes flex-grow, ...
Bugs As shown in the figure, I started to copy th...
W3C recently released two standards, namely "...