ASP.NET TableRow VerticalAlign 屬性

定義和用法
VerticalAlign 屬性用於設置或返回在 TableRow 控件中內容的垂直對齊方式。
語法
<asp:TableRow VerticalAlign="align" runat="server">
Some Content
</asp:TableRow>
Some Content
</asp:TableRow>
屬性 | 描述 |
---|---|
align | 規定內容的垂直對齊方式。 可能的值:
|
實例
下麵的實例設置了 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>
<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>
