ASP.NET VerticalAlign 属性

定义和用法

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 控件的垂直对齐方式
系统帮助 | 给我留言 | 收藏本站
Copyright © 2005-2008 www.cnn84.com All Rights Reserved Ver:2.0
CNN84网是公益性便民网站,是为了给大家的日常生活查询及提供最快捷的出行指南