菜单

时间:2018-02-11 12:47:10

标签: html css twitter-bootstrap-3

请帮忙,我有菜单,并使用bootsratp来设计它。但我在菜单下添加另一个div,它之间是空格。我在这里发布只有一半的菜单完整代码是在演示中 https://jsfiddle.net/DTcHh/42481/

<nav class="navbar navbar-inverse">
<div class="container-fluid">
 <div class="navbar-header">
     <a class="navbar-brand" href="#">PIN CLicker</a>
    <button type="button" class="navbar-toggle" data-toggle="collapse" 
    data-target="#myNavbar">
    <span class="icon-bar"></span>
    <span class="icon-bar"></span>
    <span class="icon-bar"></span>                        
  </button>

</div>
<div class="collapse navbar-collapse" id="myNavbar">

 </div>
 </div>
 </nav>


  <div class="col-sm-12"  id="statsobal" 
     style="background:red;">
    <span class="upstats1" id="uppins">0</span>
  </div>

1 个答案:

答案 0 :(得分:1)

我所做的改变:

in html

<nav class="navbar navbar-inverse ip">

在css中

.ip{
   #border:3px solid blue;
    margin:0;
   padding:0;
}

<强> HTML:

<nav class="navbar navbar-inverse ip">
  <div class="container-fluid">
     <div class="navbar-header">
         <a class="navbar-brand" href="#">PIN CLicker</a>
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>                        
      </button>

    </div>
    <div class="collapse navbar-collapse" id="myNavbar">


                              <ul class="nav navbar-nav">
      <li class="active"><a href="#">Home</a></li>
      <li><a href="mine.php">Page 1</a></li>
      <li><a href="pokus.php">Page 2</a></li>
    </ul>

                            <form action="includes/logout.inc.php" class="navbar-form navbar-right" method="POST">
                            <button type="submit" class="btn btn-default" name="submit">logout</button>

                            </form >

    <ul class="nav navbar-nav navbar-right">
      <li><a href="singup.php"><span class="glyphicon glyphicon-user"></span> Sign Up</a></li>
      <li><a href="login.php"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
    </ul>

  </div>
     </div>
</nav> 





<div class="col-sm-12"  id="statsobal" style="background:red;">
        <span class="upstats1" id="uppins">0</span>
        <span class="upstats" id="updolar">0</span>
      <span class="upstats" id="upticket">0</span>
    <span class="upstats" id="upautoclick">0</span>
     <span class="upstats" id="uplevel">0</span>
     <span id="uptotal">0</span>

 </div>

的CSS:

.ip{
   #border:3px solid blue;
    margin:0;
   padding:0;
}