【问题标题】:Ajax AutoComplete Scrolling IssueAjax 自动完成滚动问题
【发布时间】:2012-09-12 08:44:29
【问题描述】:

在 ajax 网站上有一个关于 AutoComplete 的示例(有 link),它与滑块非常好。这是代码:

<ajaxToolkit:AutoCompleteExtender 
    runat="server" 
    ID="autoComplete1" 
    TargetControlID="myTextBox"
    ServiceMethod="GetCompletionList"
    ServicePath="AutoComplete.asmx"
    MinimumPrefixLength="2" 
    CompletionInterval="1000"
    EnableCaching="true"
    CompletionSetCount="20" 
    CompletionListCssClass="autocomplete_completionListElement" 
    CompletionListItemCssClass="autocomplete_listItem" 
    CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem"
    DelimiterCharacters=";, :"
    ShowOnlyCurrentWordInCompletionListItem="true">
        <Animations>
            <OnShow> ... </OnShow>
            <OnHide> ... </OnHide>
        </Animations>
</ajaxToolkit:AutoCompleteExtender>

但是当我尝试使用它的代码时,我得到了这样的结果(没有滑块和糟糕的视图)

我的代码中缺少什么?

【问题讨论】:

    标签: asp.net ajax styling autocompleteextender


    【解决方案1】:

    根据需要在 Css 类中尝试使用 Css Height、Min-Height 或 Max-Height。 它将在您的列表右侧添加滚动条。 width 也可以用来控制宽度。

    别忘了设置溢出:自动;

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-07-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-05-16
      相关资源
      最近更新 更多