Le tele o vaega toe faʻaaogaina ua fausia e tuʻuina atu ai faʻasalalauga, mataala, popovers, ma isi mea.
E mafai ona fesuia'i, lisi autu mo le fa'aalia o lisi o so'otaga. Faia feso'ota'iga ma le pa'ū JavaScript plugin .
- <ul class = "dropdown-menu" role = "menu" aria-labelledby = "dropdownMenu" >
- <li><a tabindex = "-1" href = "#" > Fa'atino </a></li>
- <li><a tabindex = "-1" href = "#" > O se isi gaioiga </a></li>
- <li><a tabindex = "-1" href = "#" > O se isi mea iinei </a></li>
- <li vasega = "vaelua" ></li>
- <li><a tabindex = "-1" href = "#" > Separated link </a></li>
- </ul>
Va'ai i le na'o le fa'ai'u i lalo, o le HTML mana'omia lea. E te mana'omia le afifiina o le fa'aoso o le pa'u ma le lisi o le pa'u i totonu .dropdown
, po'o se isi elemene e fa'ailoa mai position: relative;
. Ona faatoa fai lea o le lisi.
- <div class = "pa'u i lalo" >
- <!-- So'oga po'o le fa'amau e sui i lalo -->
- <ul class = "dropdown-menu" role = "menu" aria-labelledby = "dLabel" >
- <li><a tabindex = "-1" href = "#" > Fa'atino </a></li>
- <li><a tabindex = "-1" href = "#" > O se isi gaioiga </a></li>
- <li><a tabindex = "-1" href = "#" > O se isi mea iinei </a></li>
- <li vasega = "vaelua" ></li>
- <li><a tabindex = "-1" href = "#" > Separated link </a></li>
- </ul>
- </div>
Fa'aoga menus i le itu taumatau ma fa'aopoopo e aofia ai vaega fa'aopoopo o fa'alalolalo.
Fa'aopoopo .pull-right
i le .dropdown-menu
fa'aoga i le taumatau le lisi o le pa'u i lalo.
- <ul class = "toso i lalo-menu toso-taumatau" role = "menu" aria-labelledby = "dLabel" >
- ...
- </ul>
Fa'aopoopo .disabled
i le a <li>
i le pa'u i lalo e tape ai le so'oga.
- <ul class = "dropdown-menu" role = "menu" aria-labelledby = "dropdownMenu" >
- <li><a tabindex = "-1" href = "#" > So'oga masani </a></li>
- <li class = "disabled" ><a tabindex = "-1" href = "#" > Disabled link </a></li>
- <li><a tabindex = "-1" href = "#" > O se isi so'oga </a></li>
- </ul>
Fa'aopoopo se vaega fa'aopoopo o menus pa'ū, fa'aalia i luga o le fa'amalo pei o le OS X, fa'atasi ai ma ni fa'aopoopoga fa'ailoga faigofie. Fa'aopoopo .dropdown-submenu
i so'o li
se mea o lo'o i totonu o le lisi o lo'o i lalo mo le fa'ailoga otometi.
- <ul class = "dropdown-menu" role = "menu" aria-labelledby = "dLabel" >
- ...
- <li vasega = "pa'u-submenu" >
- <a tabindex = "-1" href = "#" > Isi filifiliga </a>
- <ul class = "fa'alalo-menu" >
- ...
- </ul>
- </li>
- </ul>
Fa'akomepiuta faigofie fa'aosoina e Rdio, lelei mo polokalame ma fa'ai'uga su'esu'e. O le poloka tele e faigata ona misi, faigofie ona faʻaleleia, ma maua ai vaega tetele kiliki.
- <div class = "fa'asinomaga" >
- <ul>
- <li><a href = "#" > Muamua </a></li>
- <li><a href = "#" > 1 </a></li>
- <li><a href = "#" > 2 </a></li>
- <li><a href = "#" > 3 </a></li>
- <li><a href = "#" > 4 </a></li>
- <li><a href = "#" > 5 </a></li>
- <li><a href = "#" > Sosoo </a></li>
- </ul>
- </div>
O feso'ota'iga e mafai ona fa'atulagaina mo tulaga eseese. Fa'aoga .disabled
mo so'oga e le mafai ona kiliki ma fa'ailoa .active
le itulau o lo'o iai nei.
- <div class = "fa'asinomaga" >
- <ul>
- <li vasega = "fa'aletonu" ><a href = "#" > « </a></li>
- <li class = "active" ><a href = "#" > 1 </a></li>
- ...
- </ul>
- </div>
E mafai ona e suitulaga ese taula ola po'o le le atoatoa mo vaeluaga e aveese ai le fa'aogaina o le kiliki a'o taofi sitaili fuafuaina.
- <div class = "fa'asinomaga" >
- <ul>
- <li class = "fa'aletonu" ><span> « </span></li>
- <li class = "active" ><span> 1 </span></li>
- ...
- </ul>
- </div>
Mana'o e lapopo'a pe la'ititi itulau? Fa'aopoopo .pagination-large
, .pagination-small
, po'o .pagination-mini
le tele fa'aopoopo.
- <div class = "pagination pagination-large" >
- <ul>
- ...
- </ul>
- </div>
- <div class = "fa'asinomaga" >
- <ul>
- ...
- </ul>
- </div>
- <div class = "pagination pagination-small" >
- <ul>
- ...
- </ul>
- </div>
- <div class = "pagination pagination-mini" >
- <ul>
- ...
- </ul>
- </div>
Fa'aopoopo se tasi o vasega e lua e filifili e sui ai le fa'aogaina o feso'ota'iga pagination: .pagination-centered
ma .pagination-right
.
- <div class = "pagination pagination-centered" >
- ...
- </div>
- <div class = "pagination pagination-right" >
- ...
- </div>
So'oga vave muamua ma so'otaga mo fa'atinoga faigofie fa'akomepiuta ma fa'ailoga malamalama ma sitaili. E manaia tele mo nofoaga faigofie e pei o blogs poʻo mekasini.
Ona o le faaletonu, o le pager e totonugalemu sootaga.
- <ul class = "pager" >
- <li><a href = "#" > Muamua </a></li>
- <li><a href = "#" > Sosoo </a></li>
- </ul>
I le isi itu, e mafai ona e fa'aogaina so'oga ta'itasi i itu:
- <ul class = "pager" >
- <li vasega = "muamua" >
- <a href = "#" > ← Matua </a>
- </li>
- <li vasega = "sosoo" >
- <a href = "#" > Fou → </a>
- </li>
- </ul>
O feso'ota'iga Pager e fa'aogaina fo'i le .disabled
vasega fa'aoga lautele mai le fa'ailoga.
- <ul class = "pager" >
- <li class = "fa'ato'ato'a muamua" >
- <a href = "#" > ← Matua </a>
- </li>
- ...
- </ul>
Fa'ailoga | Fa'ailoga |
---|---|
Fa'atonu | <span class="label">Default</span> |
Manuia | <span class="label label-success">Success</span> |
Lapataiga | <span class="label label-warning">Warning</span> |
Taua | <span class="label label-important">Important</span> |
Fa'amatalaga | <span class="label label-info">Info</span> |
Fa'afeagai | <span class="label label-inverse">Inverse</span> |
Igoa | Faataitaiga | Fa'ailoga |
---|---|---|
Fa'atonu | 1 | <span class="badge">1</span> |
Manuia | 2 | <span class="badge badge-success">2</span> |
Lapataiga | 4 | <span class="badge badge-warning">4</span> |
Taua | 6 | <span class="badge badge-important">6</span> |
Fa'amatalaga | 8 | <span class="badge badge-info">8</span> |
Fa'afeagai | 10 | <span class="badge badge-inverse">10</span> |
Mo le fa'atinoina faigofie, o fa'ailoga ma pine o le a na'o le pa'u (e ala i le CSS's :empty
selector) pe a leai se mea o iai i totonu.
O se vaega mama, fetuutuunai e faʻaalia ai mea autu i luga o lau 'upega tafaʻilagi. E galue lelei i luga o maketi ma mea-mamafa nofoaga.
O se vaega toa faigofie lea, o se vaega faigofie jumbotron-style mo le vala'au atili atu i mea fa'aalia po'o fa'amatalaga.
- <div class = "toa-unite" >
- <h1> Ulutala </h1>
- <p> Fa'ailoga igoa </p>
- <p>
- <a vasega = "btn btn-primary btn-tele" >
- Aoao atili
- </a>
- </p>
- </div>
O se atigi faigofie mo se h1
avanoa talafeagai ma vaelua vaega o anotusi i luga o se itulau. E mafai ona fa'aogaina le h1
's default small
, elemene fa'apea le tele o isi vaega (fa'atasi ai ma sitaili fa'aopoopo).
- <div class = "itulau-ulutala" >
- <h1> Fa'ata'ita'iga ulutala itulau <small> So'oga mo ulutala </small></h1>
- </div>
Ona o le faaletonu, ua mamanuina ata laiti a Bootstrap e faʻaalia ata fesoʻotaʻi ma sina faʻailoga manaʻomia.
Faatasi ai ma sina faʻailoga faʻaopoopo, e mafai ona faʻaopoopo soʻo se ituaiga o mea HTML pei o ulutala, parakalafa, poʻo faʻamau i totonu o ata.
O ata laiti (muamua .media-grid
seia oo i le v1.4) e lelei tele mo fa'asologa o ata po'o vitiō, fa'ai'uga o su'esu'ega ata, oloa fa'atau oloa, fa'amaumauga, ma le tele o isi mea. E mafai ona avea ma so'oga po'o mea fa'amautu.
E faigofie lava le fa'ailoga o le la'ititi—a ul
ma so'o se numera o li
elemene na'o mea e mana'omia. E sili fo'i ona fetu'una'i, fa'ataga mo so'o se ituaiga o anotusi ma na'o sina fa'ailoga e afifi ai au mea.
O le mea mulimuli, e fa'aogaina e le vaega o ata laititi vasega o faiga fa'avasega o lo'o iai—pei .span2
po'o le .span3
—mo le fa'atonutonuina o le tele o ata.
E pei ona taʻua muamua, o le faʻailoga manaʻomia mo ata laiti e mama ma tuusaʻo. O se va'aiga lea i le seti fa'aletonu mo ata feso'ota'i :
- <ul class = "tusia" >
- <li vasega = "span4" >
- <a href = "#" vasega = "tusia" >
- <img data-src = "holder.js/300x200" alt = "" >
- </a>
- </li>
- ...
- </ul>
Mo mea masani HTML i ata, o le faʻailoga e suia teisi. Ina ia faʻataga le poloka poloka i soʻo se mea, matou te fesuiaʻi le <a>
mo se <div>
faʻapea:
- <ul class = "tusia" >
- <li vasega = "span4" >
- <div class = "tusia" >
- <img data-src = "holder.js/300x200" alt = "" >
- <h3> Fa'ailoga laititi </h3>
- <p> Fa'amatalaga ata... </p>
- </div>
- </li>
- ...
- </ul>
Su'esu'e au filifiliga uma i vasega fa'asologa eseese o lo'o avanoa mo oe. E mafai fo'i ona e fa'afefiloi ma fa'afetaui lapo'a eseese.
Afifi so'o se tusitusiga ma se fa'amau fa'ate'a i totonu .alert
mo se fe'au fa'alatalata masani.
- <div class = "talatala" >
- <button type = "button" class = "close" data-dismiss = "talatala" > &taimi; </fa'amau>
- <strong> Lapataiga! </strong> Sili siaki oe lava ia, e te le o lelei tele.
- </div>
Mobile Safari ma Mobile Opera suʻesuʻe, faʻaopoopo i le data-dismiss="alert"
uiga, e manaʻomia se href="#"
mo le faʻateʻaina o faʻasalalauga pe a faʻaaogaina se <a>
pine.
- <a href = "#" class = "close" data-dismiss = "alert" > &taimi; </a>
I le isi itu, e mafai ona e faʻaogaina se <button>
elemene ma le faʻamatalaga uiga, lea na matou filifili e fai mo a matou pepa. A fa'aaoga le <button>
, e tatau ona e fa'aofi type="button"
pe le mafai ona tu'uina atu au fomu.
- <button type = "button" class = "close" data-dismiss = "talatala" > &taimi; </fa'amau>
Fa'aoga le fa'ailoga jQuery plugin mo le fa'ate'aina vave ma le faigofie o fa'aliga.
Mo fe'au umi atu, fa'aopoopo le pa'u ile pito i luga ma le pito i lalo ole afifi mataala e ala ile fa'aopoopo .alert-block
.
E sili le siaki ia oe lava, e te le o lelei tele. Nulla vitae elit libero, a pharetra augue. O le mea lea, o le mea moni, o le mea moni, o le fa'asoaina atu ma isi.
- <div class = "poloka mataala" >
- <button type = "button" class = "close" data-dismiss = "talatala" > &taimi; </fa'amau>
- <h4> Lapataiga! </h4>
- E sili le siaki oe lava ia, e te le...
- </div>
Fa'aopoopo vasega fa'apitoa e sui ai le uiga o le mataala.
- <div class = "alert alert-error" >
- ...
- </div>
- <div class = "alert alert-success" >
- ...
- </div>
- <div class = "alert alert-info" >
- ...
- </div>
Pa'u fa'agasolo aga'i fa'atasi ma le fa'asolo sa'o.
- <div class = "agai i luma" >
- <div class = "bar" style = " lautele : 60 %; " ></div>
- </div>
Fa'aaogā se fa'ali'i e fai ai se fa'aa'oa'oga fa'ailoga. E le maua ile IE7-8.
- <div class = "fa'agasolo i luma-siva" >
- <div class = "bar" style = " lautele : 20 %; " ></div>
- </div>
Fa'aopoopo .active
i .progress-striped
e fa'aola ai ta'i taumatau i le agavale. E le maua i vaega uma o le IE.
- <div class = "agai i luma-striped active" >
- <div class = "bar" style = " lautele : 40 %; " ></div>
- </div>
Tuu le tele o pa i totonu e tasi .progress
e faaputu ai.
- <div class = "agai i luma" >
- <div class = "bar bar-success" style = " lautele : 35 %; " ></div>
- <div class = "bar bar-warning" style = " lautele : 20 %; " ></div>
- <div class = "bar bar-danger" style = " lautele : 10 %; " ></div>
- </div>
E fa'aogaina e pa o le alualu i luma nisi o ki tutusa ma vasega mataala mo sitaili faifai pea.
- <div class = "agai i luma-info" >
- <div class = "bar" style = " lautele : 20 % " ></div>
- </div>
- <div class = "agai i luma-manuia" >
- <div class = "bar" style = " lautele : 40 % " ></div>
- </div>
- <div class = "agai i luma-lapataiga" >
- <div class = "bar" style = " lautele : 60 % " ></div>
- </div>
- <div class = "agai i luma-tulaga lamatia" >
- <div class = "bar" style = " lautele : 80 % " ></div>
- </div>
E tutusa ma lanu mafiafia, e iai a matou pa'u fa'asolosolo laina eseese.
- <div class = "agai i luma-fa'amatalaga alualu i luma-siva" >
- <div class = "bar" style = " lautele : 20 % " ></div>
- </div>
- <div class = "agai i luma-manuia alualu i luma-sese" >
- <div class = "bar" style = " lautele : 40 % " ></div>
- </div>
- <div class = "agai i luma-lapataiga alualu i luma-siva" >
- <div class = "bar" style = " lautele : 60 % " ></div>
- </div>
- <div class = "agai i luma-tulaga lamatia-gailuma" >
- <div class = "bar" style = " lautele : 80 % " ></div>
- </div>
Fa'aoga pa o le alualu i luma CSS3 gradients, suiga, ma fa'afiafiaga e ausia uma ai o latou aafiaga. O nei foliga e le lagolagoina i le IE7-9 poʻo faʻasologa tuai o Firefox.
Fa'aliliuga muamua atu nai lo Internet Explorer 10 ma Opera 12 e le lagolagoina fa'afiafiaga.
Sitaili mea faitino mo le fausiaina o ituaiga eseese o vaega (pei o faʻamatalaga blog, Tweets, ma isi) o loʻo faʻaalia ai se ata agavale poʻo taumatau faʻatasi ma tusitusiga.
O le ala fa'asalalau fa'aletonu e mafai ai ona fa'afefe se mea fa'asalalau (ata, vitiō, leo) i le agavale po'o le taumatau o se poloka anotusi.
- <div class = "faasalalauga" >
- <a vasega = "toso-agavale" href = "#" >
- <img class = "media-object" data-src = "holder.js/64x64" >
- </a>
- <div class = "media-body" >
- <h4 class = "media-heading" > Media heading </h4>
- ...
- <!-- Nested media object -->
- <div class = "faasalalauga" >
- ...
- </div>
- </div>
- </div>
Fa'atasi ai ma sina fa'ailoga fa'aopoopo, e mafai ona e fa'aogaina fa'asalalauga i totonu o le lisi (fa'aoga mo fa'amatalaga filo po'o lisi o tala).
Cras sat amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum i vulputate ma, tempus viverra turpis.
- <ul class = "faasalalauga-lisi" >
- <li vasega = "media" >
- <a vasega = "toso-agavale" href = "#" >
- <img class = "media-object" data-src = "holder.js/64x64" >
- </a>
- <div class = "media-body" >
- <h4 class = "media-heading" > Media heading </h4>
- ...
- <!-- Nested media object -->
- <div class = "faasalalauga" >
- ...
- </div>
- </div>
- </li>
- </ul>
Fa'aoga le vaieli e fai ma fa'aoga faigofie i luga o se elemene e tu'uina atu i ai se aafiaga fa'aofi.
- <div class = "lelei" >
- ...
- </div>
Pulea padding ma tulimanu lapotopoto faatasi ai ma ni vasega se lua e suia.
- <div class = "lelei lelei-tele" >
- ...
- </div>
- <div class = "lelei lelei-laititi" >
- ...
- </div>
Fa'aoga le fa'aigoa tapuni lautele mo le fa'ate'aina o mea e pei o fa'ata'ita'iga ma fa'aaliga.
- <button class = "close" > &taimi; </fa'amau>
O masini iOS e mana'omia se href="#"
mo kiliki mea e tutupu pe afai e te mana'o e fa'aoga se taula.
- <a vasega = "latalata" href = "#" > &taimi; </a>
Vasega faigofie, taula'i mo fa'aaliga laiti po'o le tweaks amio.
Fa'afefe se elemene i le agavale
- vasega = "toso-agavale"
- . toso - agavale {
- opeopea : agavale ;
- }
Fa'afea sa'o se elemene
- vasega = "toso-taumatau"
- . toso - taumatau {
- opeopea : taumatau ;
- }
Suia le lanu o se elemene i#999
- vasega = "muted"
- . gūgū {
- lanu : #999;
- }
Fa'amama le float
i luga o so'o se elemene
- vasega = "clearfix"
- . fa'alelei {
- * zoom : 1 ;
- &: muamua ,
- &: ina ua {
- fa'aaliga : laulau ;
- anotusi : "" ;
- }
- &: ina ua {
- manino : lua ;
- }
- }