Bootstrap中的垂直菜单 [英] Vertical Menu in Bootstrap

查看:117
本文介绍了Bootstrap中的垂直菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法通过使用任何引导类创建一个垂直菜单(不是下拉,完全独立的垂直菜单侧栏)?我可以创建一个使用我的CSS,但只是想知道是否有任何内置类为此在bootstrap,或者可以使用顶部条与任何黑客完成?

Is there a way to create a vertical menu (not dropdown, entirely separate vertical menu on sidebar) by using any bootstrap class? I can create one using my css, but just want to know if there is any builtin class for this in bootstrap, or can it be done using the top-bar with any hack?

推荐答案

现在的问题是老了。

这里的技巧在当前版本是使用nav-stack类,像这样:

But if somebody looks here the trick in the current version is to use the nav-stack class, like so:

<nav>
  <ul class="nav nav-pills nav-stacked span2">
    <li><a href="#">Home</a></li>
    <li><a href="#">About</a></li>
    <li><a href="#">Contact</a></li>
  </ul>
</nav>

这篇关于Bootstrap中的垂直菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆