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