我希望单选按钮列表中每个项目列表的文本位于单选按钮的右侧 [英] I want text of each itemlist in Radio button list be at the right of radiobutton

查看:66
本文介绍了我希望单选按钮列表中每个项目列表的文本位于单选按钮的右侧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi



我在页面中使用了Radiobutton列表



hi

I used Radiobutton list in my page

<asp:RadioButtonList ID="rblDirections" runat="server" RepeatDirection="Horizontal">         <asp:ListItem Text="East" Value="East"><asp:ListItem Text="West" Value="West"><asp:ListItem Text="North" Value="North"><asp:ListItem Text="South" Value="South"> 









我希望每个项目列表的文本位于radiobutton右侧



此处文字位于离开。



我怎么做?



非常感谢





I want text of each itemlist be at the right of radiobutton

here text are at the left .

how i can do it?

thanks alot

推荐答案

如果要更改单选按钮显示文本的位置(左侧或右侧)。您可以使用asp:RadioButtonList的text align属性。



从左或右更改它。



If you want to change the place where the text should be displayed (either left or right) of the radio button. You can use text align Property of asp:RadioButtonList.

Change it from Left or Right.

<asp:radiobuttonlist id="rblDirections" xmlns:asp="#unknown">
runat="server" RepeatDirection="Vertical" 
TextAlign="Left">
                <asp:listitem text="East" value="East" />
                    <asp:listitem text="West" value="West" />
                        <asp:listitem text="North" value="North" />
                            <asp:listitem text="South" value="South" />
            </asp:radiobuttonlist>





希望这有助于。



Hope this Helps.


设置textalign属性
set textalign property


使用radiobuttonlist控件的 TextAlign 属性
use TextAlign properties of radiobuttonlist control


这篇关于我希望单选按钮列表中每个项目列表的文本位于单选按钮的右侧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆