Can we have multiple in same ?
前端 未结 8 1470
攒了一身酷
攒了一身酷 2020-11-22 05:57

Can we have multiple

tags in same
? If yes then in what scenarios should we use multiple tags
相关标签:
8条回答
  • 2020-11-22 06:53

    According to this example it can be done: w3-struct-tables.

    0 讨论(0)
  • 2020-11-22 07:00

    Yes. I use them for dynamically hiding/revealing the relevant part of a table, e.g. a course. Viz.

    <table>
      <tbody id="day1" style="display:none">
        <tr><td>session1</td><tr>
        <tr><td>session2</td><tr>
      </tbody>
      <tbody id="day2">
        <tr><td>session3</td><tr>
        <tr><td>session4</td><tr>
      </tbody>
      <tbody id="day3" style="display:none">
        <tr><td>session5</td><tr>
        <tr><td>session6</td><tr>
      </tbody>
    </table>
    

    A button can be provided to toggle between everything or just the current day by manipulating tbodies without processing many rows individually.

    0 讨论(0)
提交回复
热议问题