禁用Bootstrap标头中的导航

时间:2015-01-07 19:44:05

标签: twitter-bootstrap

我有一个简单的Bootstrap presenataion。我想有一个干净的第一页,只有图片,没有导航栏。我想在下一页(test1)上显示navigatin,所以在HEADER中没有导航。这是我的标题和导航代码:

 <header>
    <div class="container">
        <div class="intro-text">
            <div class="intro-lead-in"></div>
            <div class="intro-heading"></div>
            <a href="#test" class="page-scroll btn btn-xl"><img width="50" height="50"      src="img/start.jpg" /></a>
        </div>
    </div>
</header>



<!-- Navigation -->
<nav class="navbar navbar-default navbar-fixed-top">
    <div class="container">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header page-scroll">
            <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-brand page-scroll" href="#page-top"><img width="100" height="50" src="img/logo.jpg" /></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 navbar-right">
                <li class="hidden">
                    <a href="#page-top"></a>
                </li>
                <li>
                    <a class="page-scroll" href="#test1">Početna</a>
                </li>

            </ul>
        </div>
        <!-- /.navbar-collapse -->
    </div>
    <!-- /.container-fluid -->
</nav>

Som如何禁用标题部分的导航?

Tnx很多! P

1 个答案:

答案 0 :(得分:0)

该页面的

由于只想在该页面上使用内联样式来隐藏它...

<nav class="navbar navbar-default navbar-fixed-top" style="display:none;">