开发者

Can't prevent CheckBoxList control from overflowing

开发者 https://www.devze.com 2022-12-18 08:07 出处:网络
<div> element with fixed width contains CheckboxList contr开发者_如何学Pythonol. Since ListItems can be added by users to this control, there’s a possibility that particular ListItem could over

<div> element with fixed width contains CheckboxList contr开发者_如何学Pythonol. Since ListItems can be added by users to this control, there’s a possibility that particular ListItem could overflow parent <div> due to having too large text. I’ve tried preventing this by setting overflow property:

<asp:CheckBoxList ID="chkAllRoles" style="overflow:hidden;" ... />

but to no effect. Is there some other way to prevent ListItem from overflowing?

thanx


Did you try "overflow: hidden" on the parent div? That's what would control the overflowing of the parent container.

Setting overflow on the list items will be hard to control, as they are rendered as <td> cells.

0

精彩评论

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

关注公众号