我的下拉列表需要水平滚动条 [英] Need Horizontal scrollbar for my dropdownlist

查看:94
本文介绍了我的下拉列表需要水平滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究 ASP.NET Web应用程序.
我将一些值绑定到我的下拉列表中,如果下拉列表中的值较大,则宽度会自动增加.
我需要一个水平滚动条,以便下拉菜单不会增加其大小.

我已经浏览过 [

I''m working on ASP.NET Web Application.
I''m binding some values to my dropdownlist, if in case my values in the dropdown is larger, the width automatically increases.
I need a horizontal scrollbar so that my dropdown does not increase its size.

I have already looked through this[^] CodeProject article, but this is not the one I''m expecting.

Kindly suggest

推荐答案

通常的下拉列表不支持水平滚动条.

看看这些讨论相同的链接:
链接1 [ ^ ]
链接2 [链接3 [
The usual dropdownlist has no support for a horizontal scrollbar.

Have a look at these links discussing the same:
Link 1[^]
Link 2[^]
Link 3[^]

Alternatives like putting it in a Div would be suggested in general, but that would not look clean and would not suffice your situation.

Only alternative, I can think of is to make a custom control of yourself where you take a textbox and div collectively to have a dropdown look and feel that can have customized size and scrolls.


希望 [
Hope this[^] might give you an idea.


这篇关于我的下拉列表需要水平滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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