2012-01-07 110 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