ASP.NET中是否有checkList Row或Scrollbar属性? [英] is there checkList Row or Scrollbar property in ASP.NET ?

查看:78
本文介绍了ASP.NET中是否有checkList Row或Scrollbar属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在VS ASP.NET中将滚动条用于清单控制?

它存在于列表框中,但为什么它也没有存在于清单中?

它们虽然彼此相似,但为什么没有由asp.net *的开发人员添加?他们忘记了吗?请也提供有关此信息.我想确切地学习它.谢谢

How can i put Scrollbar for checklist control in VS ASP.NET ?

it exists in Listbox but why doesnt it in also checklist ?

Altough they are similar to each other , why is not added by developers of asp.net *? they forget ? please also give information for this one.i want to learn it exactly.thanks

推荐答案

参加div或小组讨论.在其中保留您的复选框列表.使该div或面板可滚动.
Take a div or a panel. Inside this keep your checkboxlist. Make that div or panel scroll-able.


您可以设置容器div的最大高度,而不是使用静态值固定高度.在这种情况下,只要它小于您指定的高度,它将使用自动高度
要使max-height跨浏览器兼容,必须在CSS中进行如下设置:

Instead of fixing the height with a static value, you can set the max-height of the container div. In this case it will use auto height as long as it''s less than the height you specified
To make the max-height cross-browser compatible, you have to set it as follows in your css:

.checkBoxList {
  max-height:100px;
  height:auto !important;
  height:100px;}


这篇关于ASP.NET中是否有checkList Row或Scrollbar属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆