ASP.NET RowSpan 属性

定义和用法

RowSpan 属性用于设置或返回 Table 控件中 TableCell 横跨的行数。

语法

RowSpan="num" runat="server">
Some content

属性 描述
num 规定 TableCell 横跨的行数。

实例

下面的例子把 RowSpan 设置为 "2":

RowSpan="2">Some Content Some Content Some Content

实例

为 TableCell 控件设置 RowSpan 属性