尋找一些乾淨而簡單的示例來設置響應式左側導航,幾乎與Foundation使用它們的版本完全相同。 4文檔頁面http://foundation.zurb.com/docs/v/4.3.2/index.html需要能夠鏈接到頁面,並且如果在其下面分組有子頁面,也需要展開。任何良好的Bootstrap例子,這樣做?需要Bootstrap左側導航示例
4
A
回答
9
看看這個例子。這是一個左側離帆布菜單,子菜單摺疊..
/* collapsed sidebar styles */
@media screen and (max-width: 767px) {
.row-offcanvas {
position: relative;
-webkit-transition: all 0.25s ease-out;
-moz-transition: all 0.25s ease-out;
transition: all 0.25s ease-out;
}
.row-offcanvas-right
.sidebar-offcanvas {
right: -41.6%;
}
.row-offcanvas-left
.sidebar-offcanvas {
left: -41.6%;
}
.row-offcanvas-right.active {
right: 41.6%;
}
.row-offcanvas-left.active {
left: 41.6%;
}
.sidebar-offcanvas {
position: absolute;
top: 0;
width: 41.6%;
}
#sidebar {
background-color:#3b3b3b;
padding-top:0;
}
#sidebar .nav>li {
color: #ddd;
background: linear-gradient(#3E3E3E, #383838);
border-top: 1px solid #484848;
border-bottom: 1px solid #2E2E2E;
}
#sidebar .nav>li:first-child {
border-top:0;
}
#sidebar .nav>li>a {
color: #ddd;
}
#sidebar .nav>li>a>img {
max-width: 14px;
}
#sidebar .nav>li>a:hover, #sidebar .nav>li>a:focus {
text-decoration: none;
background: linear-gradient(#373737, #323232);
color: #fff;
}
#sidebar .nav .caret {
border-top-color: #fff;
border-bottom-color: #fff;
}
#sidebar .nav a:hover .caret{
border-top-color: #fff;
border-bottom-color: #fff;
}
}
相關問題
- 1. 從Bootstrap左側滑動導航欄
- 2. twitter bootstrap導航欄固定在左側?
- 3. 需要左側
- 4. Bootstrap v3.3.0 - 側導航
- 5. 導航欄左側
- 6. Bootstrap導航欄中的白色右側和左側頁邊距
- 7. 帶有左側徽標和右側徽標的Bootstrap導航欄
- 8. 兩側(左側和右側)的bootstrap offcanvas示例
- 9. 顯示隱藏左側導航?
- 10. Bootstrap導航欄對齊正確,但需要響應左對齊
- 11. Twitter Bootstrap - 右側導航欄
- 12. Bootstrap將導航欄右側
- 13. 左側導航驗證
- 14. 左側的Android導航欄
- 15. jquery左側導航菜單
- 16. AngularJS ng-include左側導航
- 17. Ember左側導航創建
- 18. Bootstrap導航欄(左側菜單)未正確對齊頂部
- 19. Bootstrap 3導航欄徽標位置在菜單左側sidfe中
- 20. Bootstrap,無法將導航欄元素移動到最左側
- 21. Bootstrap導航欄左側固定不固定
- 22. 在bootstrap中添加左側和頂部導航欄
- 23. 浮動Bootstrap導航欄鏈接到左側的移動和右側桌面上
- 24. Bootstrap導航欄的右側和左側的菜單圖標旁邊的元素
- 25. 要修復左側導航欄列表,使其保持低於導航欄
- 26. Magento - 我需要按字母順序自動列出左側導航欄
- 27. Twitter bootstrap側欄導航詞綴
- 28. Bootstrap側面菜單導航問題
- 29. Bootstrap側導航禁用水平滾動
- 30. Bootstrap將導航欄轉換爲側欄
您正在尋找這樣一個離帆布的例子嗎? http://bootstrapzero.com/bootstrap-template/off-canvas-sidebar – ZimSystem
是的,但有些東西可以像第一個例子那樣支持子級別。 – WebPhenom
你可以像這樣整合Bootstrap垂直菜單:http://bootply.com/129624 – ZimSystem