bootstrap button on click showing default colour

前端 未结 7 542
广开言路
广开言路 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 08:58

    That button press animation of the default color is due to the background image. Use this for each named style (btn-default, btn-success, etc):

    .btn-primary:active,
    .btn-primary.active,
    .open > .dropdown-toggle.btn-primary {
      background-image: none;
    }
    

提交回复
热议问题