2013-05-20 98 views
0

我需要一些帮助,我希望有一个边栏和内容div使用引导流体布局,但我不能让侧边栏滚动和内容div没有。我已经尝试过使用overflow:hidden;在身体和应用溢出:自动在侧边栏div但它不起作用,我错过了什么? 继承人我SCSS代码:带自举流体布局的可滚动边栏

#main-container{ 
     margin-left:0; 
     margin-top:60px; 
     padding:0px; 
    .span3{ 
     background-color:white; 
     ul{ 
     margin: 0; 

     li#song{ 
      background-image: url($images+'chevron.png'); 
      background-position: right center; 
      background-repeat: no-repeat; 
      background-color:white; 
      color: #666; 
      border-top: 1px solid #B4B4B4; 
      list-style-type: none; 
      padding: 10px 10px 10px 10px; 
      } 
      } 
     } 
     } 

    .maxheight{ 
    height:100%; 
    } 

    .no-overflow{ 
    overflow-y:hidden; 
    } 

    .scrollable{ 
    height:100%; 
    overflow-x:hidden; 
    } 

下面是示例代码,左格是我想要滚动:http://jsfiddle.net/xYDRg/

回答

1

您需要为格设置高度:

#lista-canciones{ 
    height: 350px; 
} 

http://jsfiddle.net/xYDRg/1/

+0

我是设置高度:100%,但我认为它不工作,我必须把它放在像素中。谢啦! –