weixin_33725722 2015-04-02 10:41 采纳率: 0%
浏览 18

Ajax组合框CSS移除

I have used a Ajax Combobox, when I am binding it with my datasource I have few conditions on which background color defines, but after the page load when hover comes on that List item of combobox then background color changes. I dont want fix color background color will be change according to the conditions. How to fix this issue can anybody help me in this.

Below is css which I have customized.

#ddlAdminTaskListNewLateralName  li

{
 /*background-color: #fff !important;*/
 color: #084B8A !important;
 padding: 5px 5px 5px 5px !important;
 }

#ddlAdminTaskListNewLateralName  li:hover {

}
  • 写回答

1条回答 默认 最新

  • weixin_33721344 2015-06-04 10:37
    关注

    Got the answer

     <ajaxControlToolkit:ComboBox  ID="ddlAdminTaskListNewLateralName"  runat="server" CssClass="WindowsStyle"  AutoCompleteMode="SuggestAppend" MaxLength="20" ListItemHoverCssClass="ddlAdminTaskListNewLateralNameCss" AutoPostBack="True" DropDownStyle="Simple" OnSelectedIndexChanged="ddlAdminLateralName_SelectedIndexChanged"></ajaxControlToolkit:ComboBox>
    
    .WindowsStyle .ajax__combobox_itemlist li {
            background-color: none!important;
            color: black !important;
            padding: 5px 5px 5px 5px !important;
             font-family: Arial;
    font-size: 12px;
        }
    
            .WindowsStyle .ajax__combobox_itemlist li:hover {
                /*background-color: none !important;
    color: #EFFBF2 !important;
    text-decoration: underline !important;*/
            }
    
    .WindowsStyle table {
    top:0px !important;
    

    }

    I achieved the solution of my problem through above code.

    评论

报告相同问题?

悬赏问题

  • ¥50 MATLAB实现圆柱体容器内球形颗粒堆积
  • ¥15 python如何将动态的多个子列表,拼接后进行集合的交集
  • ¥20 vitis-ai量化基于pytorch框架下的yolov5模型
  • ¥15 如何实现H5在QQ平台上的二次分享卡片效果?
  • ¥15 python爬取bilibili校园招聘网站
  • ¥30 求解达问题(有红包)
  • ¥15 请解包一个pak文件
  • ¥15 不同系统编译兼容问题
  • ¥100 三相直流充电模块对数字电源芯片在物理上它必须具备哪些功能和性能?
  • ¥30 数字电源对DSP芯片的具体要求