ASP.NET Table CaptionAlign property
Definition and Usage
CaptionAlign property is used to get or set the table title text alignment.
grammar
<asp:Table Caption="text" CaptionAlign="align" runat="server">
Some Content
</asp:Table>
Some Content
</asp:Table>
属性 | 描述 |
---|---|
align | 规定标题文本的对齐方式。 可能的值:
|
Examples
The following example sets the Caption property of the table, and put it at the bottom of Table arranged controls:
<form runat="server">
<asp:Table id="tab1" runat="server"
Caption="Table 实例" CaptionAlign="bottom">
<asp:TableRow>
<asp:TableCell>
Hello!
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>
<asp:Table id="tab1" runat="server"
Caption="Table 实例" CaptionAlign="bottom">
<asp:TableRow>
<asp:TableCell>
Hello!
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>
The demonstration >>
Table Controls