• 原因

    • 默认情况下,HTML中的<table>标签是没有边框的。
    • 编辑器为了方便用户识别,会临时给表格加上边框。
  • 解决办法

    1. 直接在<table>标签中加上边框属性
      html
       
      <table border="1">
    2. 使用CSS美化表格边框
      • 修改主题的CSS文件,添加以下代码:
        css
         
        table {
        border-collapse: collapse;
        border-spacing: 0;
        }
        table th, table td {
        border: 1px solid #eee;
        padding: 1rem;
        overflow: hidden;
        }
        table th {
        background: #f1f1f1;
        }