How to change color of Bootstrap disabled button?

后端 未结 3 926
予麋鹿
予麋鹿 2021-02-12 20:18

I am using a bootstrap button on a page of my website and I want to change the color of a disabled button. A button that is \"grayed out\" and you cannot click. Is there a way I

3条回答
  •  眼角桃花
    2021-02-12 20:23

    In case your button look like this:

    
    

    the next CSS code will change its color (when disabled only):

    .btn.btn-primary[disabled] {
        background-color: #00ff00;
    }
    

    or

    .btn.btn-primary:disabled{
        background-color: #00ff00;
    }
    

提交回复
热议问题