table布局的作用-out了,还问这种lowB问题

table的主要作用:

  1. 用于布局(过时)
  2. 用于显示批量的数据

早期的使用table来布局网页,但是table有一个缺点,就是加载页面的时候,需要全部的数据都请求到,才显示页面,否则就是一片的空白。因此现在一般不采用table来做布局,而是使用div+css进行布局。

table的结构:

<table>
   <caption></caption>
   <thead>
      <tr>
         <th></th>
      </tr>
   <thead>
   <tbody>
        <tr>
         <td></td>
      </tr>
   </tbody>
   <tfoot></tfoot>
</table>

猜你喜欢

转载自blog.csdn.net/qq_27064559/article/details/81874257