CSS Bootstrap overrides my own CSS

后端 未结 9 1211
深忆病人
深忆病人 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:24

    I'm not sure if this will answer your question exactly but what I do in all my BS 3 projects is:

    In my header:

    
    

    In custom.css

    @import boostrap.less // or the fully compiled bootstrap css
    // all your custom stuff, overrides, etc. down here
    

    This way we load up boostrap first but anything custom you want to do will be loaded last meaning your chances of overriding are high and won't cause conflicts. Also it's one line and a lot cleaner for your

提交回复
热议问题