Transparent color of Bootstrap-3 Navbar

前端 未结 4 1487
死守一世寂寞
死守一世寂寞 2020-12-08 03:46

I\'m having problem with setting bootstrap3 navbar transparency or opacity color. I didin\'t change anything in bootstrap.css or bootstrap-theme.css In my menu I\'m Trying

4条回答
  •  时光取名叫无心
    2020-12-08 04:00

    The class is .navbar-default. You need to create a class on your custom css .navbar-default.And follow the css code. Also if you don’t want box-shadow on your menu, you can put on the same class.

     .navbar-default {
          background-color:transparent !important;
          border-color:transparent;
          background-image:none;
          box-shadow:none;  
     }
    

    To change font navbar color, the class is to change – .navbar-default .navbar-nav>li>a see the code bellow:

      .navbar-default .navbar-nav>li>a {
         font-size:20px; 
         color:#fff; 
     }
    

    ref : http://twitterbootstrap.org/bootstrap-navbar-background-color-transparent/

提交回复
热议问题