开发者

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

开发者 https://www.devze.com 2023-02-11 08:46 出处:网络
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

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

精彩评论

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