<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                [toc] # 1、表格所有元素 ![](https://img.kancloud.cn/a7/03/a703e0ba0b5e99adcd18d429f8c487a5_593x352.png) 一個簡單的 HTML 表格,包含兩行兩列: ~~~ <table border="1"> <tr> <th>Month</th> <th>Savings</th> </tr> <tr> <td>January</td> <td>$100</td> </tr> </table> ~~~ 結果如下: ![](https://img.kancloud.cn/bf/7c/bf7ca25685337df667dae92b05d980d8_509x308.png) 注意:一般表是有thead、tbody、tfoot三部分組成,如果都不寫那么默認表中內容為<b>tbody</b>。 ![](https://img.kancloud.cn/7c/44/7c4403fbf97b3ebb22257b0ce2350dd4_309x61.png) # 2、表格常用屬性 ## align ![](https://img.kancloud.cn/22/5e/225e8d5d8f8526079c1a7fd95e89de09_731x142.png) ~~~ <table border="1" width="200px"> <tr align="center"> <th>Month</th> <th>Savings</th> </tr> <tr align="center"> <td>January</td> <td>$100</td> </tr> </table> ~~~ 給tr加align="center"可以使行內元素居中,效果如下 ![](https://img.kancloud.cn/e5/3d/e53d52dafd44f02637948a8078efa400_273x89.png) ## cellspacing ![](https://img.kancloud.cn/b8/ae/b8ae86d495eadb254754d702068c01b3_633x78.png) ~~~ <h4>沒有 cellspacing:</h4> <table border="1"> <tr> <td>First</td> <td>Row</td> </tr> <tr> <td>Second</td> <td>Row</td> </tr> </table> <h4>帶有 cellspacing:</h4> <table border="1" cellspacing="0"> <tr> <td>First</td> <td>Row</td> </tr> <tr> <td>Second</td> <td>Row</td> </tr> </table> ~~~ 一般用cellspacing去除單元格之間距離,效果如下 ![](https://img.kancloud.cn/76/c4/76c4317877b06d5d2762aad3ea7b3121_192x269.png) ## border-collapse 表格去重復邊框一般用border-collapse:collapse ![](https://img.kancloud.cn/3a/bd/3abd0e9bddee33b874f49c2c685e0554_183x287.png)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看