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>
演示實例»
TableRow控件