日期:2014-05-17  浏览次数:20660 次

关于表边框线粗细的问题,请兄弟们帮我想想办法
<table   width= "100% "   border= "1 "   cellpadding= "0 "   cellspacing= "0 "   bordercolor= "#666666 ">
  <tr>
        <td> </td>
        <td> </td>
        <td> </td>
  </tr>
  <tr>
        <td> </td>
        <td> </td>
        <td> </td>
  </tr>
</table>
<a   href= "javascript:print() "> 打印 </a>

我要做的是一张可以打印出来的登记表,但是感觉 <table> 表的边框还是太粗了,和word里的表看起来感觉不一样,不知道有什么办法可以让表的边框变细

------解决方案--------------------
<table width= "100% " border= "1 " cellpadding= "0 " cellspacing= "0 " bordercolor= "#666666 ">
改成
<table width= "100% " border= "1 " cellpadding= "0 " cellspacing= "0 " bordercolor= "#666666 " style= "border-collapse:collapse ">
------解决方案--------------------
或:

<table width= "100% " cellpadding= "0 " cellspacing= "1 " bgcolor= "#dddddd ">
<tr bgcolor= "#ffffff ">
<td> test </td>
<td> test </td>
<td> test </td>
</tr>
<tr bgcolor= "#ffffff ">
<td> test </td>
<td> test </td>
<td> test </td>
</tr>
</table>