css - 如何在 bootstrap-theme.css 中编写新的导航栏类

标签 css twitter-bootstrap

我为我的菜单添加了 div 类,我喜欢在同一行中显示所有内容。

这是我的 div 类。

  <div class="navbar-inner">

我在我的 bootstrap-theme.css 中添加了一些代码。

  .navbar-inner
   {
    display: inline;
   }

我在 yii 框架中使用 Bootstrap 。 但是这段代码不起作用。我是否需要添加任何代码? 请帮助我。

最佳答案

试试这个“float:none;display:inline-block;”。它将帮助您。

关于css - 如何在 bootstrap-theme.css 中编写新的导航栏类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23131659/

相关文章:

ruby-on-rails - Bootstrap Rails 不工作

jquery - Bootstrap 缩略图问题

css - 第一个 div 固定,第二个全宽。不能改变html的结构

python - 如何使用 to_html 将 CSS 类(我的风格)应用到 Pandas DataFrame

html - 有没有办法使用 CSS border-radius 创建 HTML 视频标签的三 Angular 形显示?

css - 如何在 bootstrap 4 中使 margin 超过 mt5 或 mb-5?

css - select2如何将文本框和按钮添加到组合框中

css - Bootstrap 无法覆盖 <p> 的属性

twitter-bootstrap - ng2-bootstrap 中的 Typeahead 无法显示 Angular 2 中的项目

css - Bootstrap Progress Bar with Popovers - 时间线