Styling twitter bootstrap buttons

前端 未结 14 2726
庸人自扰
庸人自扰 2020-12-04 05:18

Twitter-Bootstrap buttons are awesomely beautiful. Try them out by scrolling over them

\"bootstrap

14条回答
  •  自闭症患者
    2020-12-04 06:04

    In order to completely override the bootstrap button styles, you need to override a list of properties. See the below example.

        .btn-primary, .btn-primary:hover, .btn-primary:focus, .btn-primary.focus, 
        .btn-primary:active, .btn-primary.active, .btn-primary:visited,
        .btn-primary:active:hover, .btn-primary.active:hover{
            background-color: #F19425;
            color:#fff;
            border: none;
            outline: none;
        }
    

    If you don't use all the listed styles then you will see the default styles at performing actions on button. For example once you click the button and remove mouse pointer from button, you will see the default color visible. Or keep the button pressed you will see default colors. So, I have listed all the pseudo-styles that are to be overridden.

提交回复
热议问题