[英]Change the table tr border color
我有一张桌子:
<table border="0" class="box">
<tr height="25%" class="tableHead">
<td align="center">Title</td>
</tr>
<tr height="25%">
<td>test</td>
</tr>
<tr height="25%">
<td>test</td>
</tr>
<tr height="25%">
<td>test</td>
</tr>
</table>
css为:
.box{
background:#FFFFFF;
border:5px solid #427BD6;
border-radius:8px;
}
.tableHead{
background:#427BD6;
color:#FFFFFF;
border-style:solid;
border-width: 1px;
border-color: #427BD6;
font-weight:bold;
}
我想删除标题tr和表格边框之间的空白区域或更改其颜色。 提前致谢。
在表格中添加cellspacing =“0”。 那可行!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.