ASP.NET TextAlign 属性

返回 ASP.NET RadioButtonList 控件参考手册

定义和用法

TextAlign 属性用于获取或设置 RadioButtonList 项目的文本的文本对齐方式。

语法

<asp:RadioButtonList TextAlign="align" runat="server">
some content
</asp:RadioButtonList >
属性 描述
align

规定列表项的文本对齐方式。

可能的值:

  • Left
  • Right (默认)
这个在线速查手册由www.w卐△√卐△√3卐△√x卐△√卐△√u卐△√e.com提供,请勿盗用!

实例

下面的例子把 RadioButtonList 控件中的 TextAlign 设置为 "Left":

<form runat="server">
<asp:RadioButtonList id="rb1" runat="server" TextAlign="Left">

Some content

</asp:RadioButtonList>
</form>

返回 ASP.NET RadioButtonList 控件参考手册