Latest web development tutorials

ASP.NET TableCell VerticallAlign property

TableCell control TableCell control

Definition and Usage

Vertical alignment VerticalAlign property sets or returns the contents of TableCell control.

grammar

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

可能的值:

  • Bottom
  • Middle
  • NotSet
  • Top


Examples

The following examples set VerticalAlign property TableCell control:

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

The demonstration >>

TableCell control TableCell control