如何在Bootstrap 3中创建一个可分离的菜单

时间:2016-06-06 07:28:39

标签: jquery html css twitter-bootstrap

我在bootstrap中有我的菜单代码,它由一行分隔,但是我想做一个像第二个图像一样的分隔菜单,具有特定的颜色和特定的分类,是否可以这样做?我只是使用BootstrapjQuery

<div class="navbar navbar-inverse navbar-static-top">
    <div class="container">
        <button class="navbar-toggle" data-toggle="collapse" data-target=".navHeaderCollapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
        <div class="collapse navbar-collapse navHeaderCollapse">
            <ul class="nav navbar-nav">
                <li><a href="#">VOLVER</a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">Menu<b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a href="#">Accion #1</a></li>
                        <li><a href="#">Accion #2</a></li>
                        <li><a href="#">Accion #3</a></li>
                        <li><a href="#">Accion #4</a></li>
                        <li><a href="#">Accion #5</a></li>
                        <li class="divider"></li>
                        <li><a href="#">Accion #6</a></li>
                    </ul>
                </li>
                <li><a href="#">Accion #7</a></li>
                <li><a href="#">Accion #8</a></li>
                <li><a href="#">Accion #9</a></li>
                <li><a href="#">Accion #10</a></li>
                <li><a href="#">Accion #11</a></li>
            </ul>
        </div>
    </div>
</div>

Here is the example that I have

Here is the example that I would like to achieve

0 个答案:

没有答案