ASP.NET VerticalAlign ÊôÐÔ

¶¨ÒåºÍÓ÷¨

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

Óï·¨

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

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

¿ÉÄܵÄÖµ£º

  • Bottom
  • Middle
  • NotSet
  • Top

ʵÀý

ÏÂÃæµÄÀý×ÓÉèÖÃÁË TableCell ¿Ø¼þµÄ VerticalAlign ÊôÐÔ£º

<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>

ʵÀý

Ϊ TableCell ¿Ø¼þÉèÖô¹Ö±¶ÔÆë·½Ê½