English 中文(简体)
页: 1
原标题:Twitter Bootstrap - On collapse, the navbar options do not turn into a button that shows the options

我有这个标志:

<div class= navbar >
            <div class= navbar-inner >
              <div class= container >
                <a class= btn btn-navbar  data-target= .nav-collapse  data-toggle= collapse >
                  <span class= icon-bar ></span>
                  <span class= icon-bar ></span>
                  <span class= icon-bar ></span>
                </a>
                <div class= nav-collapse >
                  <ul class= nav >
                    <li class= active >
                      <a href= # >Home</a>
                      <a href= # >Option 2</a>
                      <a href= # >Option 3</a>
                    </li>
                  </ul>
            </div>
          </div>
        </div>
      </div>

It renders ok when the screen is full, but when I collapse the screen, it does not show the button which expands to show the options. Is there something I am not doing correctly? Any idea why the button is not being shown after screen collapse?

感谢!

最佳回答

您需要列入<条码>,以便适应工作特点。

http://getposts Screen.com/2.3.2/scafrafting.html# Response

问题回答

正如Andres所说,你需要确保列入<代码>的过滤器具敏感度。 你们还需要确保你装上<条码>boot锁......js文档,以便点击倒的纽子显示菜单。

此外,您应在自己的<代码><li> tag中填写每一链接,如:

<ul class= nav >
  <li class= active ><a href= # >Home</a></li>    
  <li><a href= # >Option 2</a></li>
  <li><a href= # >Option 3</a></li> 
</ul>

否则,你就有一个奇怪的菜单。





相关问题
How to import Bootstrap JS with HTML5 reusable web components

RESOLVED: see my solution in a comment TL;DR: Can t get bootstrap s JS to trigger, suspect that I m importing the JS scripts wrong I ve been trying to get Bootstrap to work properly with my custom ...

Bootstrap scrollable table with fixed header

I want to create a table with a lot of data. To keep it all sorted out, I want the table to be scrollable. I use bootstrap to pimp up the table. I know this question is asked before and the solution ...

What is a CSS framework?

Can anyone tell me about CSS frameworks, and how to use them?

模块boot如何为违约模块工作?

我用两个单元确定我的申请,一个单元是关于阿明的,另一个单元是所谓的缺省。 然后,我为阿明模块创建了一个诱杀装置档案,当我试图确定......时。

热门标签