asp.net列表框中的滚动条 [英] scrollbar in listbox in asp.net
本文介绍了asp.net列表框中的滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在asp.nt
推荐答案
中将垂直滚动条添加到列表框中据我所知,垂直滚动条会在列表框自动出现其中增加的项目占用的空间超过了定义的高度.设置列表框的高度参数,一旦项目越过,它将自动向您显示滚动条.
要在列表框中获得水平滚动,可以将listbox
放在div
中,并将其属性"overflow
"或"overflow-x
"设置为"auto
" .
看看这个:最后是水平滚动ASP.NET中的栏列表框! [
As much I remember, vertical scroll bar appears automatically for a listbox as soon as the items increase in it that occupy more than the defined height. Set a height parameter of your listbox and it will automatically show you scrollbar, once items cross it.
To get a horizontal scroll in listbox, you can put thelistbox
in adiv
with it''s attribute ''overflow
'' or ''overflow-x
'' set as ''auto
''.
Have a look at this: Finally a Horizontal Scroll Bar List Box in ASP.NET![^]
这篇关于asp.net列表框中的滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文