文本在列表框中对齐 [英] text align in listbox

查看:93
本文介绍了文本在列表框中对齐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

如何更改列表框的文本对齐方式?

谢谢:)

Hi!

How can i change the text align of a listbox?

thanks :)

推荐答案

尝试一下:

Try this:

<style type="text/css">
        .lstcss
        {
            direction:rtl;
            width: 200px;
        }
    </style>

    <asp:ListBox ID="ListBox1" runat="server" CssClass="lstcss">
    <asp:ListItem Value="1">One</asp:ListItem>
    <asp:ListItem Value="2">Two</asp:ListItem>
    </asp:ListBox>



用这个
Hi,
Use this,
<style type="text/css">
    .rlbItem
    {
        float: left;
    }
    .rlbGroup, .RadListBox
    {
        width: auto;
    }
</style>


这篇关于文本在列表框中对齐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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