How to change color of Bootstrap disabled button?

后端 未结 3 909
予麋鹿
予麋鹿 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:45

    If I understand your question correctly; you need to use :disabled. Here is a working code:

    #work {
      width: 200px;
      height: 50px;
      color: black;
    }
    
    #work:disabled{
      background-color: red;
    }

提交回复
热议问题