簡體   English   中英

Twitter Bootstrap側邊欄右側而不是左側

[英]Twitter Bootstrap sidebar on the right instead of the left

Twitter Bootstrap側邊欄的默認配置是左側。 我怎么能在右邊移動它?

更新:似乎可以在下一個版本中使用: https//github.com/twitter/bootstrap/issues/333

只需將側邊欄的流向右移,如下所示:

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

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

編輯演示http://jsfiddle.net/andresilich/6vPqA/show/

如果您正在使用github上顯示的流體布局示例,這應該可行。

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM