ASP.NET VerticalAlign ÊôÐÔ

¶¨ÒåºÍÓ÷¨

VerticalAlign ÊôÐÔÓÃÓÚÉèÖûò·µ»ØÔÚ TableRow ¿Ø¼þÖÐÄÚÈݵĴ¹Ö±¶ÔÆë·½Ê½¡£

Óï·¨

<asp:TableRow VerticalAlign="align" runat="server">
Some Content
</asp:TableRow>
ÊôÐÔ ÃèÊö
align

¹æ¶¨ÄÚÈݵĴ¹Ö±¶ÔÆë·½Ê½¡£

¿ÉÄܵÄÖµ£º

  • Bottom
  • Middle
  • NotSet
  • Top

ʵÀý

ÏÂÃæµÄÀý×ÓÉèÖÃÁË 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>

ʵÀý

ÉèÖà TableRow ¿Ø¼þµÄ´¹Ö±¶ÔÆë·½Ê½