bootstrap button on click showing default colour

前端 未结 7 552
广开言路
广开言路 2021-01-31 08:13

I am trying to style the button colour with below code, the colours work until I click the button, the button shows the default colours, how do I specify the colours of the butt

7条回答
  •  [愿得一人]
    2021-01-31 09:01

    You have to use the !important declaration to do that correcly.

    .btn-success:hover, .btn-success:active, .btn-success:focus {
      color: #ffffff !important;
      background-color: #1F2838 !important;
      border-color: #494F57 !important;
    }
    

提交回复
热议问题