设置表格边框的方式

<style>
.table3 {border-top:1px solid #d6d6d6; border-left:1px solid #d3d3d3; text-align:right; width:100%; margin:0 0;}
.table3 td,.table1 th {border-bottom:1px solid #d3d3d3; border-right:1px solid #d6d6d6;}
.table3 th { height:30px; background:#e8e8e8;}
.table3 td { height:25px; line-height:25px;padding:0px 8px 0px 8px;text-align:left;}

</style>
<table class="table3">
    <tr><td>css修改表格</td></tr>
</table>

这样就完成了表格边框的显示,这是细线显示出来,如果想不要上下左右任意边框可以进行对应的设置

相关文章:

  • 2022-12-23
  • 2021-12-28
  • 2022-02-21
  • 2022-12-23
  • 2022-12-23
  • 2022-02-11
  • 2021-07-07
猜你喜欢
  • 2021-12-14
  • 2022-12-23
  • 2021-07-25
  • 2022-02-21
  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
相关资源
相似解决方案