本文介绍了在右侧的单选按钮文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我用我的应用程序单选按钮有没有从左边的文字转移到右侧任何可能的方式
I am using radio buttons in my application is there any possible way to shift the text from the left side to right side
推荐答案
将设置textAlign
属性设置为右的名单上它属于
Set the TextAlign
property to "Right" on the list it belongs to.
在这里看到:http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.radiobuttonlist.textalign.aspx
示例(使用VS标准的WebApplication,包括Default.aspx中以下):
Example (use a standard WebApplication in VS and include the following in default.aspx):
<asp:RadioButtonList id="RadioButtonList1"
RepeatDirection="Vertical"
RepeatLayout="Table"
TextAlign="Right"
runat="server">
<asp:ListItem>Item 1</asp:ListItem>
<asp:ListItem>Item 2</asp:ListItem>
<asp:ListItem>Item 3</asp:ListItem>
<asp:ListItem>Item 4</asp:ListItem>
<asp:ListItem>Item 5</asp:ListItem>
<asp:ListItem>Item 6</asp:ListItem>
</asp:RadioButtonList>
有关textAlign设置设置到左的结果是:
The result for setting TextAlign to Left is:
这篇关于在右侧的单选按钮文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!