Bootstrap Mobile Navbar切换按钮

时间:2015-01-15 00:33:21

标签: html css twitter-bootstrap mobile navbar

只是想知道在更改导航栏高度后是否有办法在导航栏内进一步向下移动导航栏切换按钮http://prntscr.com/5sldgb

HTML     

        <div class="navbar navbar-default">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <img class="navbar-brand" src="assets/images/logo.png"/>
            </div>

            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav pull-right">
                    <li><a href="#index">Home</a></li>
                    <li><a href="#about">About Us</a></li>
                    <li><a href="#Example">Example</a></li>
                    <li><a href="#team">Our Team</a></li>
                    <li><a href="#Example">Example</a></li>
                    <li><a href="#enquire">Enquire Now</a></li>
                    <li><a href="#Example">Example</a></li>
                </ul>
            </div><!--/.nav-collapse -->
            </div>
        </div><!--/.navbar -->

CSS可以在JS Fiddle中找到。

JSFiddle:http://jsfiddle.net/24duac9g/

谢谢!

1 个答案:

答案 0 :(得分:2)

您可以调整margin-top

.navbar-toggle
.navbar-toggle{
    display: block;
    margin-top: 50px
} 

FIDDLE