ASP.NET RadioButtonList TextAlign 屬性

定義和用法
TextAlign 屬性用於獲取或設置 RadioButtonList 專案的文本的文本對齊方式。
語法
<asp:RadioButtonList TextAlign="align" runat="server">
Some Content
</asp:RadioButtonList >
Some Content
</asp:RadioButtonList >
屬性 | 描述 |
---|---|
align | 規定列表項的文本對齊方式。 可能的值:
|
實例
下麵的實例把 RadioButtonList 控件中的 TextAlign 屬性設置為 "Left":
<form runat="server">
<asp:RadioButtonList id="rb1"
runat="server" TextAlign="Left">
Some content
</asp:RadioButtonList>
</form>
<asp:RadioButtonList id="rb1"
runat="server" TextAlign="Left">
Some content
</asp:RadioButtonList>
</form>
