2012-01-07 109 views

回答

7

就在侧边栏的流向右移动,就像这样:

.container-fluid > .sidebar { 
    position: absolute; 
    right: 20px; 
    top: 0; 
    width: 220px; 
} 

.container-fluid > .content { 
    margin-right: 240px; 
} 

编辑演示http://jsfiddle.net/andresilich/6vPqA/show/

+0

很好,很多thx! – 2012-01-08 10:11:56

0

这应该如果你使用像在github上显示出其流体布局实例工作。

.sidebar 
{ 
    left: auto; 
    right: 20px; 
} 
+0

...不知道的方式,但这个不起作用与Bootstrap,我已经尝试过,但不能覆盖别的设置... – 2012-01-07 16:27:06

+0

默认的CSS在这里https://github.com/twitter/bootstrap/blob/master/bootstrap.css – 2012-01-07 16:37:57