zoukankan      html  css  js  c++  java
  • AutoCompleteExtender增加滚动条效果

    1、首先添加样式  

    <style type="text/css">   
        .autocomplete_completionListElement 
     
     margin : 0px!important;
     background-color : inherit;
     color : windowtext;
     border : buttonshadow;
     border-width : 1px;
     border-style : solid;
     cursor : 'default';
     overflow : auto;
     height :auto;
     max-height:200px;
        text-align : left;
        list-style-type : none;
       }
       .autocomplete_listItem
    {
      

     border-style : solid;
     border :#EAEFF9;
    border-width : 1px;

     background-color : window;
     color : windowtext;

    }
    .autocomplete_highlightedListItem
    {
     background-color: #ffff99;
     color: black;
     padding: 1px;
    }
    </style>

    2、在AutoCompleteExtender控件中添加属性:

    CompletionListCssClass="autocomplete_completionListElement"
    CompletionListItemCssClass="autocomplete_listItem"
    CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem"

  • 相关阅读:
    Linux 工具命令
    Js的一些工具方法
    使用curl测试网络通信
    python 创建XML
    Nginx 使用Lua脚本
    lua 安装cjson
    3对象和类_动手动脑
    10.5
    10.4动手动脑
    10.2
  • 原文地址:https://www.cnblogs.com/windphoenix/p/1520732.html
Copyright © 2011-2022 走看看