table{
      border-collapse: collapse;
}

可以解决tr添加边框的问题!


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<style>
 }
   tr{
       border:1px solid #ccc;    
    }
</style>
<body>

<table>
   <tr>
      <td>内容</td>
      <td>内容</td>
      <td>内容</td>
   </tr>
    <tr>
      <td>内容</td>
      <td>内容</td>
      <td>内容</td>
   </tr>
    <tr>
      <td>内容</td>
      <td>内容</td>
      <td>内容</td>
   </tr>
</table>

</body>
</html>

相关文章:

  • 2021-07-27
  • 2022-12-23
  • 2022-02-21
  • 2021-10-11
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-15
  • 2022-12-23
  • 2022-12-23
  • 2021-07-31
相关资源
相似解决方案