html表细胞组合 [英] html table cells combine
本文介绍了html表细胞组合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个3行3列的表。如何组合最后一行列?我的html:
I have a table with 3 rows and 3 columns. How can combine last row columns? My html:
<table>
<tr><td></td><td></td><td></td></tr>
<tr><td></td><td></td><td></td></tr>
<tr><td>Here I need a cell by all width</td></tr>
</table>
提前感谢。对我的英语很抱歉。
Thank you in advance. Sorry for my english.
推荐答案
使用 colspan
属性:
<tr><td colspan="3">Here I need a cell by all width</td></tr>
colspan属性定义单元格应该跨越的列数。 / p>
The colspan attribute defines the number of columns a cell should span.
有一个相关属性 rowspan
,以达到相同的行。
There is a related attribute rowspan
that achieves the same for rows.
这篇关于html表细胞组合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文