给table设置细边框:
- .table_border{
- border: solid 1px #B4B4B4;
- border-collapse: collapse; --折叠样式.
- }
- .table_border tr th{
- background:url("../../images/gray/bg_table_th.gif") repeat;
- padding-left:4px;
- height:27px;
- border: solid 1px #B4B4B4;
- }
- .table_border tr td{
- height:25px;
- padding:4px;
- border: solid 1px #B4B4B4;
- }
HTML:
- <table class="table_border" width="100%" border="0" id="high_light" lang="tabRowData"
- cellpadding="0" cellspacing="0">
- <tr>
- <td><td>
- </tr>
- </tabl>
还可以使用行内样式,使表格边框变细;
- style="width: 100%; border-collapse: collapse;" cellspacing="0"
转自:http://zhouhaitao.iteye.com/blog/1180789
本文介绍如何在HTML中为表格设置细边框样式,包括使用类选择器和行内样式的方法,同时提供示例代码帮助理解实现过程。

3055

被折叠的 条评论
为什么被折叠?



