CSS Bootstrap overrides my own CSS

后端 未结 9 1214
深忆病人
深忆病人 2021-02-07 14:12

I am trying to create a split-button in my website (ASPNET WebForms). So far the only split-button implementation I like is the one from Bootstrap. I am not using any other feat

9条回答
  •  不知归路
    2021-02-07 14:38

    A good rule of thumb. Always put the stylesheet with the rules you want to be most authoritative last. You probably have

    
    
    

    So any styles declared in bootstrap css will override yours. instead try

     
    
    

    This way the rules in your stylesheet have more precedence.

    Aside from that, you may be better off not using the minified version of bootstrap so you can remove any conflicting classes easier.

提交回复
热议问题