改变AjaxCombo-Button的风格 [英] Change style of AjaxCombo-Button

查看:76
本文介绍了改变AjaxCombo-Button的风格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨Dudes,



我在我的页面中使用AjaxToolkit组合框...我正在尝试更改组合按钮的宽度。但我不能。因为它默认具有内联样式..



无论我试图使用以下代码添加样式



.ComboClass .ajax__combobox_buttoncontainer按钮

{

border-radius:0px;

box-shadow:0px;

宽度:12px;高度:12px的;

}



但边框半径和框阴影样式正在应用但宽度和高度不适用..



因为ComboBox Button有默认的内联样式..我也不能删除那些样式..



请给我一些建议。 ...

Hi Dudes,

I am using AjaxToolkit combobox in my page... I am trying to change the width of combo-button . But I couldnot. Because it has inline style by default..

Whatever i tried to add style using the following code

.ComboClass .ajax__combobox_buttoncontainer button
{
border-radius: 0px;
box-shadow: 0px;
width :12px; height:12px;
}

But border-radius and Box-shadow styles are applying but Width& height is not applying ..

Because ComboBox Button got default inline styles.. I cant remove that line styles too..

Please post me some suggestions....

推荐答案

.WindowsStyle .ajax__combobox_buttoncontainer button
        {
            background-image: ;
            background-position: center;
            background-repeat: no-repeat;
            border-color: ButtonFace;
            height: 15px;
            width: 15px;
        }



试试这个


Try this


你好,



最后它有效我添加了!important css属性,我需要覆盖我的风格



Hi,

Finally it works I added !important css property which i need to override my style

.ComboClass .ajax__combobox_buttoncontainer button
       {
           border-radius: 0px;
           box-shadow: 0px;
           width: 12px !important;
           height: 15px !important;
       }


这篇关于改变AjaxCombo-Button的风格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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