Second navbar goes under the first navbar on top

送分小仙女□ 提交于 2019-12-23 20:42:00

问题


Hi I am using twitter bootstrap, and I am having two nav bar but the second navbar is hidden underneath of the first one

<div class="navbar navbar-fixed-top"> 
 <a class="brand" href="../"></a>
 <div class="navbar">
              <div class="navbar-inner">
                <div class="container">
                  <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">

and the second nav menu is

<div class="tabbable">
    <ul id="myTab" class="nav nav-tabs">
      <li><a href="#home" data-toggle="tab">Home</a></li>
      <li><a href="#profile" data-toggle="tab">Profile</a></li>
      <li><a href="#messages" data-toggle="tab">Messages</a></li>
      <li><a href="#settings" data-toggle="tab">Settings</a></li>
    </ul>

here is the whole code http://jsfiddle.net/YZJ5M/

You wont be able to see my second nav as it is underneath of the first nav and I want the second nav bar to be just below it. Thank you


回答1:


Simply take off the position: fixed rule for navbar-fixed-bottom and navbar-fixed-top. Or if you would not like to change it, add margin-top: 43px rule to your tabbable class.



来源:https://stackoverflow.com/questions/12702056/second-navbar-goes-under-the-first-navbar-on-top

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!