下拉列表应显示仅滚动的6个项目 [英] dropdownlist should show 6 items only remaining on scroll
本文介绍了下拉列表应显示仅滚动的6个项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个15datatypes的下拉列表,当我点击下拉列表时看起来很笨拙,你能不能建议我如何在asp.net中的dropdownlist中放置滚动
解决方案
< blockquote>将您的内容放在 div
内,固定高度
并设置 div
样式到溢出:自动
如果您只想显示六个项目,那么您可以根据它调整div高度并可以使用。
嗨...
只需输入默认的高度和宽度值。
< asp:DropDownList ID = DropDownList1 < span class =code-attribute> runat = server 高度 = 22px 宽度 = 122px >
< / asp:DropDownList >
谢谢你。
I have a dropdownlist with 15datatypes,when i click the drop down it looks so clumsy ,can u suggest me how to put scroll in dropdownlist in asp.net
解决方案
Put your content insidediv
withfixed height
and set thediv
style tooverflow:auto
and if you concern to show only six items then you can adjust div height according to that and can use.
Hi...
Just put default height and width values like.
<asp:DropDownList ID="DropDownList1" runat="server" Height="22px" Width="122px"> </asp:DropDownList>
Thank u.
这篇关于下拉列表应显示仅滚动的6个项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文