bootstrap button on click showing default colour

前端 未结 7 690
广开言路
广开言路 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:02

    Just add the following code in your CSS

    .btn-success.active.focus, .btn-success.active:focus, .btn-success.active:hover, .btn-success:active.focus, .btn-success:active:focus, .btn-success:active:hover, .open>.dropdown-toggle.btn-success.focus, .open>.dropdown-toggle.btn-success:focus, .open>.dropdown-toggle.btn-success:hover
    {
    color: #fff;
    background-color: #161617; 
    border-color: #494F57; 
    }
    

提交回复
热议问题