How to use CSS to implement thin-line table effects:
While it is not recommended to use table when using layouts, table is not an element that cannot be used, as long as it is used properly with CSS, it is quite powerful, and using table in a specific situation is more advantageous than using a div, such as making a table, But the table comes with an ugly border, the following describes how to use CSS to implement the thin-line table effect. The code example is as follows:
<!DOCTYPE HTML><HTML><Head><MetaCharSet= "Utf-8"><Metaname= "Author"content= "http://www.51texiao.cn/" /><title>Ant Tribe</title><styletype= "Text/css">Table{width:300px;Height:60px;Background-color:Green;}Table TD{Background-color: White;}</style></Head><Body><Tablecellspacing= "1"> <TR> <TD>Cell</TD> <TD>Cell</TD> <TD>Cell</TD> <TD>Cell</TD> <TD>Cell</TD> </TR> <TR> <TD>Cell</TD> <TD>Cell</TD> <TD>Cell</TD> <TD>Cell</TD> <TD>Cell</TD> </TR></Table></Body></HTML>
The above code can reveal the 1px "border" effect by setting the table's CellSpacing property value to 1px, then setting the table's background color to green, and then setting the cell's background color to white.
The original address is: http://www.51texiao.cn/div_cssjiaocheng/2015/0504/725.html
The most original address is: http://www.softwhy.com/forum.php?mod=viewthread&tid=4645
How to use CSS to implement thin-line table effects