您好!以下是最典型的细线表格,具备最基本的设置。供参考:
<!doctype html><html>
<head>
<meta charset="utf-8">
<title>表格CSS设置</title>
<style>
#tb1 {
border-collapse: collapse /* 折叠边框产生细线表格*/
border: 2px solid black /* 外框粗线、内部细线表格,表格线为黑色 */
}
#tb2 {
border-collapse: collapse /* 折叠边框产生细线表格*/
border: 1px solid red /* 细线表格,表格线为红色 */
}
</style>
</head>
<body>
<br>
<table id="tb1" width="379" height="87" border="1" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="123" height="34">&nbsp</td>
<td width="122">&nbsp</td>
<td width="126">&nbsp</td>
</tr>
<tr>
<td height="25">&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
</tr>
<tr>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
</tr>
</tbody>
</table>
<br>
<table id="tb2" width="379" height="89" border="1" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="123" height="36">&nbsp</td>
<td width="122">&nbsp</td>
<td width="126">&nbsp</td>
</tr>
<tr>
<td height="25">&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
</tr>
<tr>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
</tr>
</tbody>
</table>
</body>
</html>
显示结果:
css:a{background:(中间切1-2像素横向循环) repeat-x}
a li{ float:leftbackground:(中间竖线) no-repeat left}
a li a{display:block padding-left:15pxpadding-right:10px}
<div ><img src=前边圆角切图 》</div>
<div class=a>
《ul>
<li style=background:none><a>名称</a></li>
<li><a>名称</a></li>
<li><a>名称</a></li>
</ul>
</div>
<div ><img src=后边圆角切图 》</div>
大体 应该 出来了,在根据自己需要调整一下 就OK了