表格显示1px细边框

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style type="text/css">
table {
   border: none;
   border-collapse: collapse;
}
table tr td {
   border: 1px solid #000;
}
</style>
</head>
<body>
<table width="500" border="1">
  <tr>
    <td>单元格内容</td>
    <td>单元格内容</td>
    <td>单元格内容</td>
    <td>单元格内容</td>
    <td>单元格内容</td>
  </tr>
  <tr>
    <td>单元格内容</td>
    <td>单元格内容</td>
    <td>单元格内容</td>
    <td>单元格内容</td>
    <td>单元格内容</td>
  </tr>
  <tr>
    <td>单元格内容</td>
    <td>单元格内容</td>
    <td>单元格内容</td>
    <td>单元格内容</td>
    <td>单元格内容</td>
  </tr>
  <tr>
    <td>单元格内容</td>
    <td>单元格内容</td>
    <td>单元格内容</td>
    <td>单元格内容</td>
    <td>单元格内容</td>
  </tr>
  <tr>
    <td>单元格内容</td>
    <td>单元格内容</td>
    <td>单元格内容</td>
    <td>单元格内容</td>
    <td>单元格内容</td>
  </tr>
</table>
</body>
</html>

Copyright © 2024 码农人生. All Rights Reserved