Bootstrap3 - 更改导航栏大小

时间:2016-12-04 23:51:42

标签: html css twitter-bootstrap twitter-bootstrap-3

我是Bootstrap的新手,我想改变导航栏的高度。我已经看过一些关于这个的话题,但没有解决我的问题。我从主题中获取了导航栏代码,所以我还不了解所有代码。试图改变导航栏类的高度,但是有很多它们让我很困惑。

来自index.html的

navbar类:

<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation" >
    <div class="container" >
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-left" href="#"><img src="images/_ressources/logo.svg" height="50px"></a>
        </div>
        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li>
                    <a href="#" style="font-family: 'Roboto', sans-serif;">ACCUEIL</a>
                </li>
                <li>
                    <a href="#" style="font-family: 'Roboto', sans-serif;">BOUTIQUE</a>
                </li>
                <li>
                    <a href="#" style="font-family: 'Roboto', sans-serif;">CONTACT</a>
                </li>
            </ul>

          <ul class="nav navbar-nav navbar-right">
            <li>
              <a href="#" style="font-family: 'Roboto', sans-serif;">MON COMPTE</a>
            </li>
            <li>
              <div class="input-group-btn">
                <button type="button" class="btn btn-default btn-lg" style="background-color:orange">
                  <span class="glyphicon glyphicon-lock" ></span>
                </button>
            </div>
            </li>

          </ul>

      <form class="navbar-form navbar-right" role="search">
        <div class="input-group">
            <input type="text" class="form-control" placeholder="Recherche un produit">
            <div class="input-group-btn">
                <button class="btn btn-default" type="submit"><i class="glyphicon glyphicon-search"></i></button>
            </div>
        </div>
      </form>
          <!-- /.navbar-collapse -->
      </div>
    </div>
    <!-- /.container -->
</nav>

0 个答案:

没有答案