How to change the background-color of jumbrotron?

后端 未结 14 1216
遥遥无期
遥遥无期 2021-02-01 13:03

I want to know how to change the background-color of \'jumbotron\' class, it has a default background-color #eee in bootstrap.css.

I tried to override by e

相关标签:
14条回答
  • 2021-02-01 13:41

    Add this to your css file

    .jumbotron {
        background-color:transparent !important; 
    }
    

    It worked for me.

    0 讨论(0)
  • 2021-02-01 13:41

    I put the jumbotron in a <header> class and added background-color: black !important; to the header class in css.

    0 讨论(0)
提交回复
热议问题