ASP.NET TableCell VerticallAlign property
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>
Some Content
</asp:TableCell>
属性 | 描述 |
---|---|
align | 规定内容的垂直对齐方式。 可能的值:
|
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>
<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