4.
導覽列 Navigation
一般的導覽列
3 | < li >< a href = "#" >連結1</ a ></ li > |
4 | < li >< a href = "#" >連結2</ a ></ li > |
水平導覽列(依據格線,會塞滿能用空間)
-
要加上<nav>
-
<ul>要加上class="row"
-
<li>要上每個選項要用掉幾分之幾
01 | < nav class = "small-tablet" > |
03 | < li class = "one small-tablet fourth" >< a href = "#nowhere" title = "連結 1 的提示" >連結 1</ a ></ li > |
04 | < li class = "menu one small-tablet fourth" >< a href = "#nowhere" title = "連結 2 的提示" >連結 2</ a > |
05 | < ul style = "display: none;" > |
06 | < li >< a href = "#nowhere" title = "子連結 1 的提示" >子連結 1</ a ></ li > |
07 | < li >< a href = "#nowhere" title = "子連結 2 的提示" >子連結 2</ a ></ li > |
08 | < li >< a href = "#nowhere" title = "子連結 3 的提示" >子連結 3</ a ></ li > |
09 | < li >< a href = "#nowhere" title = "子連結 4 的提示" >子連結 4</ a ></ li > |
12 | < li class = "one small-tablet fourth" >< a href = "#nowhere" title = "連結 3 的提示" >連結 3</ a ></ li > |
13 | < li class = "one small-tablet fourth" >< a href = "#nowhere" title = "連結 4 的提示" >連結 4</ a ></ li > |
水平導覽列(行內,工具列多大就多大)
-
要加上<nav>並加上class="inline"
-
<ul>不需要class="row"
-
<li>不需要加class,除非有子選單才需要class="menu"
03 | < li >< a href = "#nowhere" title = "連結 1 的提示" >連結 1</ a ></ li > |
04 | < li < class = "menu" >< a href = "#nowhere" title = "連結 2 的提示" >連結 2</ a > |
05 | < ul style = "display: none;" > |
06 | < li >< a href = "#nowhere" title = "子連結 1 的提示" >子連結 1</ a ></ li > |
07 | < li >< a href = "#nowhere" title = "子連結 2 的提示" >子連結 2</ a ></ li > |
08 | < li >< a href = "#nowhere" title = "子連結 3 的提示" >子連結 3</ a ></ li > |
09 | < li >< a href = "#nowhere" title = "子連結 4 的提示" >子連結 4</ a ></ li > |
12 | < li >< a href = "#nowhere" title = "連結 3 的提示" >連結 3</ a ></ li > |
13 | < li >< a href = "#nowhere" title = "連結 4 的提示" >連結 4</ a ></ li > |
垂直導覽列
-
要加上<nav>
-
<ul>要指定佔幾分之幾
-
<li>不需要加class,除非有子選單才需要class="menu"
01 | < nav class = "small-tablet" > |
02 | < ul class = "one small-tablet fourth" > |
03 | < li >< a href = "#nowhere" title = "連結 1 的提示" >連結 1</ a ></ li > |
04 | < li class = "menu" >< a href = "#nowhere" title = "連結 2 的提示" >連結 2</ a > |
05 | < ul style = "display: none;" > |
06 | < li >< a href = "#nowhere" title = "子連結 1 的提示" >子連結 1</ a ></ li > |
07 | < li >< a href = "#nowhere" title = "子連結 2 的提示" >子連結 2</ a ></ li > |
08 | < li >< a href = "#nowhere" title = "子連結 3 的提示" >子連結 3</ a ></ li > |
09 | < li >< a href = "#nowhere" title = "子連結 4 的提示" >子連結 4</ a ></ li > |
12 | < li >< a href = "#nowhere" title = "連結 3 的提示" >連結 3</ a ></ li > |
13 | < li >< a href = "#nowhere" title = "連結 4 的提示" >連結 4</ a ></ li > |
分頁
-
要加上<nav>並加上class="pagination"
-
<ul>不需要class="row"
-
每一個按鈕的結構都是用<li>包住<a>,所有頁的按鈕要一次全部列出
-
上一頁的按鈕:<li>加上 class="prev"
-
上一頁的按鈕:<li>加上 class="next"
-
第一頁的按鈕:<li>加上 class="first"
-
最後頁的按鈕:<li>加上 class="last"
-
要顯示的按鈕:<li>加上 style="display: inline-block;"
-
不顯示的按鈕:<li>加上 style="display: none;"
-
當前頁面按鈕:<li>加上 class="active"
001 | < nav class = "pagination" > |
006 | < li style = "display: none;" class = "first" > |
009 | < li style = "display: none;" > |
012 | < li style = "display: none;" > |
015 | < li style = "display: none;" > |
018 | < li style = "display: none;" > |
021 | < li style = "display: none;" > |
024 | < li style = "display: none;" > |
027 | < li style = "display: none;" > |
030 | < li style = "display: inline-block;" > |
033 | < li style = "display: inline-block;" > |
036 | < li style = "display: inline-block;" > |
039 | < li style = "display: inline-block;" > |
042 | < li style = "display: inline-block;" > |
045 | < li style = "display: inline-block;" > |
048 | < li style = "display: inline-block;" > |
051 | < li style = "display: inline-block;" > |
054 | < li style = "display: inline-block;" > |
057 | < li style = "display: inline-block;" > |
063 | < li style = "display: inline-block;" > |
066 | < li style = "display: inline-block;" > |
069 | < li style = "display: inline-block;" > |
072 | < li style = "display: inline-block;" > |
075 | < li style = "display: inline-block;" > |
078 | < li style = "display: inline-block;" > |
081 | < li style = "display: inline-block;" > |
084 | < li style = "display: inline-block;" > |
087 | < li style = "display: inline-block;" > |
090 | < li style = "display: inline-block;" > |
093 | < li style = "display: inline-block;" > |
096 | < li style = "display: none;" > |
099 | < li style = "display: none;" > |
102 | < li style = "display: none;" > |
105 | < li style = "display: none;" > |
108 | < li style = "display: none;" > |
111 | < li style = "display: none;" > |
114 | < li style = "display: none;" > |
117 | < li style = "display: none;" > |
120 | < li style = "display: none;" class = "last" > |