แนวทาง ASP.NET HorizontalAlign
การประกาศและการใช้งาน
ตัวแปร HorizontalAlign ใช้เพื่อตั้งค่าหรือกลับค่าการเท้าตรงแนวนอนของเนื้อหาใน TableRow ควบคุม
รูปแบบ
<asp:TableRow HorizontalAlign="align" runat="server"> Some Content </asp:TableRow>
แนวทาง | คำอธิบาย |
---|---|
align |
กำหนดการจัดลำดับระดับนอกของเนื้อหา ค่าที่เป็นไปได้:
|
ตัวอย่าง
ตัวอย่างด้านล่างนี้ตั้งค่า TableRow ควบคุมไปยังตัวแปร HorizontalAlign:
<form runat="server"> <asp:Table id="tab1" runat="server"> <asp:TableRow HorizontalAlign="Center"> <asp:TableCell>Hello!</asp:TableCell> <asp:TableCell>Hello!</asp:TableCell> </asp:TableRow> </asp:Table> </form>
ตัวอย่าง
- ตั้งค่าการเท้าตรงแนวนอนของ TableRow ควบคุม