Table related (table)

<table border="1">

  <caption>Table title</caption>

  <thead>

    <tr>
      <th></th>

      <th></th>

    </tr>

  </thead>

  <tfoot>

    <tr>

      <td></td>

      <td></td>

    </tr>

  </tfoot>

  <tbody>

    <tr>

      <td></td>

      <td></td>

    </tr>

  </tbody>

</table>

define table <table></table> 

  border: defines whether to display a border around the table cell, "1" displays, "" does not display

table grouping

  <table>

    <thead>...</thead>

    <tfoot>...</tfoot>

    <tbody>...</tbody>

  </table>

Table title <caption>…</caption>

行  <tr></tr>

Header cell <th></th> (bold, centered)

  colspan: the number of columns that the header cell can span

  rowspan: The number of rows that the header cell can span

  headers: specifies the id value of one or more header cells associated with the header cell, and multiple id values ​​are separated by spaces

  scope: specifies whether the header cell is the header of a row, column, row group, or column group

    col -- the cell is the header of the column

    row -- the cell is the header of the row

    colgroup -- the cell is the header of the column group

    rowgroup -- the cell is the header of the row group

Standard cell <td></td> (left-aligned)

  colspan: the number of columns that a standard cell can span

  rowspan: the number of rows that a standard cell can span

  headers: specifies the id value of one or more header cells associated with the standard cell, and multiple id values ​​are separated by spaces

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324540681&siteId=291194637