I was wondering if it is wise or acceptable to create a table with a different number of columns (td) for each row (tr) using html. For example:
我想知道使用html为每行(tr)创建一个具有不同列数(td)的表是明智的还是可接受的。例如:
<table>
<tr>
<td>title</td>
</tr>
<tr>
<td>text</td>
<td>and more text</td>
</tr>
</table>
Do I have to include the colspan?
我是否必须加入colspan?
2 个解决方案
#1
0
You do not have to include a colspan=
, however, the size of the largest <td></td>
will determine the width of the column as it is displayed. Different browsers (and releases) will render the table slightly differently (How the non-defined area is displayed).
您不必包含colspan =,但是,最大 的大小将决定列显示时的宽度。不同的浏览器(和发行版)将稍微不同地呈现表(如何显示未定义的区域)。
#2
0
Not only is it NOT wise, it's nonconformant with HTML standards.
Use the colspan
attribute.
它不仅不明智,而且与HTML标准不一致。使用colspan属性。
#1
0
You do not have to include a colspan=
, however, the size of the largest <td></td>
will determine the width of the column as it is displayed. Different browsers (and releases) will render the table slightly differently (How the non-defined area is displayed).
您不必包含colspan =,但是,最大 的大小将决定列显示时的宽度。不同的浏览器(和发行版)将稍微不同地呈现表(如何显示未定义的区域)。
#2
0
Not only is it NOT wise, it's nonconformant with HTML standards.
Use the colspan
attribute.
它不仅不明智,而且与HTML标准不一致。使用colspan属性。