HTML表格 - 按行或列 [英] html table - by rows or columns

查看:126
本文介绍了HTML表格 - 按行或列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我知道你可以这样做:

 <表> 
< tr>
< td>< / td>
< / tr>
< / table>

但是,您可以先按列建立表格吗?首先做cols有什么问题吗?解析方案

这不是HTML标准。你制作你的桌子,然后制作一排,然后制作你的专栏。还有一些额外的东西用于标题,主体等。但是标准(并且仅支持的方法)是按行而不是按列。


do all browsers support html table by columns first.

i know you can do:

<table>   
      <tr>
          <td></td>
      </tr>
</table>

but can you build up a table by columns first? Is there anything wrong with doing cols first?

解决方案

That is not how the HTML standard is. You make your table, then you make a row, and then your columns. There is some additional stuff for headers, bodies, etc. But the standard (and only supported method) is by row and not by column.

这篇关于HTML表格 - 按行或列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆