-1
我的CSS文件有一个overflow-y
属性,但此属性在2.1
中不受支持,因为它是CSS3属性。滚动条不适用于复选框列表
请让我知道2.1
下此属性的另一种方法是代码:
else if (multiselectbox)
{
LiteralControl divStart = new LiteralControl("<div class='multiselectDiv'>");
cell.Controls.Add(divStart);
cell.Controls.Add(childControl);
LiteralControl divEnd = new LiteralControl("</div>");
cell.Controls.Add(divEnd);
}
,并在CSS
.multiselectDiv
{
overflow-y: scroll;
height: 400px;
}
好的。如果我需要添加滚动条... – DineshKumarSingh
@DineshKumarSingh'#id {overflow:scroll; }'将添加一个滚动条到你的div中的任何溢出。 – h0ch5tr4355
但这似乎不起作用 – DineshKumarSingh