gpt4 book ai didi

ASP.NET AutoCompleteExtender CompletionListCssClass

转载 作者:太空宇宙 更新时间:2023-11-03 18:38:24 26 4
gpt4 key购买 nike

我在 asp.net 应用程序中使用了 AutoCompleteExtender,我想将 max-height 设置为 CompletionListCssClass,因为我得到了大约 75-150 条记录。我的问题是,即使我在 AutoCompleteExtender 上有三个记录,它也需要 150 像素。我想动态改变高度。是否有任何特定的 css 属性可以执行此操作。任何帮助将不胜感激。谢谢

    .autocomplete_completionListElement     {      margin : 0px!important;    background-color : White;    color : windowtext;    border : buttonshadow;    border-width : 1px;    border-style : solid;    cursor : 'default';    overflow : auto;    font-family:Calibri;    font-size:12px;    text-align : left;     list-style-type : none;    margin-left:0px;    padding-left:0px;    max-height:150px;    width:auto;    }

最佳答案

添加 min-height:50px 或根据您对 CSS 的要求设置最小高度。

关于ASP.NET AutoCompleteExtender CompletionListCssClass,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18183185/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com