Twitter Bootstrap側欄的默認配置位於左側。我怎樣才能在右邊移動它?右側的Bootstrap側欄而不是左側
UPDATE: 看來,將有可能與下一個版本:https://github.com/twitter/bootstrap/issues/333
Twitter Bootstrap側欄的默認配置位於左側。我怎樣才能在右邊移動它?右側的Bootstrap側欄而不是左側
UPDATE: 看來,將有可能與下一個版本:https://github.com/twitter/bootstrap/issues/333
就在側邊欄的流向右移動,就像這樣:
.container-fluid > .sidebar {
position: absolute;
right: 20px;
top: 0;
width: 220px;
}
.container-fluid > .content {
margin-right: 240px;
}
這應該如果你使用像在github上顯示出其流體佈局實例工作。
.sidebar
{
left: auto;
right: 20px;
}
...不知道的方式,但這個不起作用與Bootstrap,我已經嘗試過,但不能覆蓋別的設置... – 2012-01-07 16:27:06
默認的CSS在這裏https://github.com/twitter/bootstrap/blob/master/bootstrap.css – 2012-01-07 16:37:57
很好,很多thx! – 2012-01-08 10:11:56