如何给表格设置边框颜色(速记)

1.设置表格的table的背景色  <table width="96%" border="0" cellspacing="1" cellpadding="0" bgcolor="#000000">

2.设置表格的空隙  <table width="96%" border="0" cellspacing="1" cellpadding="0" bgcolor="#000000">

3. 设置表格的td 的表格 背景色       <td bgcolor="#FFFFFF">&nbsp;</td>

 border-collapse:collapse   ----合并边框,公用一个边框

文本两端对齐:  text-align:justify;

       text-justify:inter-ideograph

other  样式表控制

table id=tb1

<style type="text/css">
*
{margin:0;padding:0;}
#tb1
{ 
background
:#69C;
color
:#F33;
border-collapse
:separate;
border-spacing
:1px;
}
#tb1 td
{ background-color:#FFF; text-align:center;}
</style>
原文地址:https://www.cnblogs.com/NetSos/p/1751262.html