English 中文(简体)
推波束管网无法应对小屏幕
原标题:Twitter bootstrap navbar not responsive to small screens

I m testing twitter bootstrap 2 to see responsive feature in it. But I can t make it work on small devices. Here is my navbar jade template code:

div.navbar.navbar-fixed-top
  div.navbar-inner
    div.container-fluid
      a.brand(href="#") WOWITO
      div.nav-collapse
       ul.nav
        li.active
         a(href= /getpassword , data-transition= fade , data-role= button , data-theme= a ) Forgot Password?
      div.btn-group.pull-right
        a.btn.dropdown-toggle(href="#",data-toggle="dropdown") 
         i.icon-user 
         Font Size
         span.caret
        ul.dropdown-menu
         li
          a#fs_med medium 
         li
          a#fs_lrg large
         li
          a#fs_xlrg xlarge

我的特写法是:

    meta(name= viewport , content="width=device-width, initial-scale=1.0")
    link(rel= stylesheet , href= /bootstrap/css/bootstrap.min.css )
    style( type="text/css")
      body {
      padding-top: 60px;
      padding-bottom: 40px;
      }
      .sidebar-nav {
       padding: 9px 0;
       }
    link(rel= stylesheet , href= /stylesheets/bootstrap-responsive.min.css )
    link(rel= stylesheet , href= /stylesheets/style.css )
    script(type= text/javascript , src= /javascripts/jquery.min.js ) 
    script(type= text/javascript , src= /bootstrap/js/bootstrap.min.js )

是否有东西被忽略? 我怎么能加以纠正?

感谢

最佳回答

这应当行之有效。 似乎反应型表格没有装上。 这条道路可能不正确。 如果所有boot的风格都相同(如我所想象的那样),那么大概应当:

link(rel= stylesheet , href= /bootstrap/css/bootstrap-responsive.min.css )

而不是:

link(rel= stylesheet , href= /stylesheets/bootstrap-responsive.min.css )
问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

Drop down background url in Safari Issue

selectBox.selectCSS { background: url(/Images/replacementSelectBackground.png) top left no-repeat height:auto; } I have an issue in Safari only where the image is not rendering on top ...

CSS specific for Safari

How do you target specifically safari in css with styles?

Aligning textarea in a form

Ive used the following css code to align my form elements: form { position:relative; } form input { position:absolute; left:11em; } However, the textarea element is not aligned correctly with the ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

CSS problem with page footer

I have defined my page footer in the css file as: #footer { position: absolute; height: 50px; text-align: center; background: #66CCCC; bottom: 0px; left: 0px; width: 100%; height: ...

热门标签