简体   繁体   English

Bootstrap底部可滚动导航栏

[英]Bootstrap bottom scrollable navbar

I have a simple question which i searched the web and cannot find the answer. 我有一个简单的问题,我在网上搜索后找不到答案。 I created a bootstrap responsive bottom navbar. 我创建了一个引导响应式底部导航栏。 When I list many things using the <li> tag, after the space is over in the first line in the navbar, it creates another line. 当我使用<li>标记列出许多内容时,导航栏的第一行中的空格结束后,它将创建另一行。 Instead, how to make a bottom fixed navbar which is only one like and can be scrolled within the line. 取而代之的是,如何制作一个底部固定的导航栏,该导航栏只有一个,并且可以在该行中滚动。 Sorry for my bad english. 对不起,我的英语不好。 Thanks 谢谢

Supposing your navbar has HTML like this: 假设您的导航栏具有如下所示的HTML:

<ul class="nav navbar-nav">
    <li class="nav-item">Link</li>
    <li class="nav-item">Link</li>
    <li class="nav-item">Link</li>
</ul>

The following CSS rule will make each list item inline: 以下CSS规则将使每个列表项都内联:

.navbar-nav .nav-item {
    display: inline-block;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM