导航栏twitter bootstrap侧面的水平线(hr)

时间:2015-03-08 21:46:59

标签: html5 css3 twitter-bootstrap

我试图在透明导航栏的两侧创建一条线


,该导航栏的项目位于页面中间的中心位置。 我只是在寻找boostrap特定答案

<nav class = "navbar navbar-transparent navbar-static>
    <div class = "navbar-inner"> 
        <div class ="container">
            <div class = "navbar-header">
                <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> 
            <hr>
            <div class="collapse navbar-collapse navbar-left" id="myNavbar">
                <ul class="nav navbar-nav">
                    <li class="active"><a href="#">Home</a></li>
                    <li><a href="#">About us </a></li>
                    <li><a href="#">Products</a></li>
                </ul> 
            </div>
            <a class="navbar-brand" href="#"> Brand </a>
            <div class="collapse navbar-collapse navbar-right" id="myNavbar">
                <ul class="nav navbar-nav">
                    <li class="active"><a href="#">Blog</a></li>
                    <li><a href="#">Testimonials </a></li>
                    <li><a href="#">Contact us</a></li>
                </ul>
            </div>
        </div><!-- end of container -->
    </div><!-- end of navbar-inner -->
</nav> <!-- end of navbar -->

0 个答案:

没有答案