How can I override Bootstrap CSS styles?

前端 未结 12 1334
囚心锁ツ
囚心锁ツ 2020-11-22 05:35

I need to modify bootstrap.css to fit my website. I feel it\'s better to create a separate custom.css file instead of modifying bootstrap.css

12条回答
  •  感动是毒
    2020-11-22 06:15

    Use jquery css instead of css . . . jquery have priority than bootstrap css...

    e.g

    $(document).ready(function(){
            $(".mnu").css({"color" : "#CCFF00" , "font-size": "16px" , "text-decoration" : "overline"});    
    
    
    );
    
     instead of
    
    .mnu
    {
    
    font-family:myfnt;
    font-size:20px;
    color:#006699;
    
    }
    

提交回复
热议问题