ASP.NET TableRow VerticalAlign 属性


TableRow 控件 TableRow 控件

定义和用法

VerticalAlign 属性用于设置或返回在 TableRow 控件中内容的垂直对齐方式。

语法

<asp:TableRow VerticalAlign="align" runat="server">
Some Content
</asp:TableRow>
 
属性 描述
align 规定内容的垂直对齐方式。

可能的值:

  • Bottom
  • Middle
  • NotSet
  • Top


实例

下面的实例设置了 TableRow 控件的 VerticalAlign 属性:

<form runat="server">
<asp:Table id="tab1" runat="server">
<asp:TableRow VerticalAlign="Middle">
<asp:TableCell>
Hello!
</asp:TableCell>
<asp:TableCell>
Hello!
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>

演示实例 »

TableRow 控件 TableRow 控件