开发者

Display vertical scrollbars in a dynamic CheckBoxList with in IE?? (works fine in Chrome and FF)

Below is a dynamic CheckBoxList control that I've added to my webpage, in Chrome and Firefox this works just fine, displaying the vertical scrollbar correctly. However, IE does not display scrollbars, it just lists a large list without scrolls. What do i need to do to get IE to show this correctly as the other two browsers do?

var pMultiValueList = new CheckBoxList();
pMultiValueList.St开发者_StackOverflow中文版yle.Add("Position", "relative");
pMultiValueList.Style.Add("overflow", "auto");
pMultiValueList.Style.Add("display", "block");

Thanks!!


Try giving it a fixed height or number of items to show.


Created an ascx of a checkboxlist surrounded by div and used that. Works now.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜