數位相簿很上手
一、導航
- http://bootstrap.hexschool.com/docs/4.0/components/navs/
- 可用無序列表 ul.nav
- 項目 li.nav-item
- 連結:a.nav-link 作用中 .active 禁用:.disabled
- 垂直導航:.nav.flex-column
- 水平居中:.nav.justify-content-center
- 水平居右:.nav.justify-content-end
- 頁籤顯示:.nav.nav-tabs 、.nav.nav-pills
- 填充和對齊:.nav.nav-fill 、.nav.nav-justified
- 範例:https://webugm.github.io/bootstrap4/navs.html
- http://bootstrap.hexschool.com/docs/4.0/components/navbar/
- 包裝:nav.navbar
- 品牌:a.navbar-brand
- 選單:ul.navbar-nav => 項目:li.nav-item => 連結:a.nav-link
- 展開顯示:.navbar-expand{-sm|-md|-lg|-xl}
- 顯示樣式:.navbar-light 、.bg-light
- 包裝:.collapse.navbar-collapse 指定id navbar-content
- 切換開關:
<button class="navbar-toggler" data-toggle="collapse" data-target="#navbar-content">
<span class="navbar-toggler-icon"></span>
</button>
- 導航位置:
fixed-top、fixed-bottom、sticky-top