Ibice byinshi byongeye gukoreshwa byubatswe kugirango bitange inzira, kumenyesha, popovers, nibindi byinshi.
Toggleable, menu ya menu yo kwerekana urutonde rwihuza. Byakozwe bikorana na plagin ya JavaScript .
- <ul class = "dropdown-menu" uruhare = "menu" aria-labelledby = "dropmanMenu" >
- <li> <a tabindex = "-1" href = "#"> Igikorwa </a> </li>
- <li> <a tabindex = "-1" href = "#"> Ikindi gikorwa </a> </li>
- <li> <a tabindex = "-1" href = "#"> Ikindi kintu hano </a> </li>
- <li urwego = "umutandukanya" > </li>
- <li> <a tabindex = "-1" href = "#"> Ihuza ritandukanye </a> </li>
- </ul>
Urebye gusa menu yamanutse, dore HTML isabwa. Ugomba gupfundika imbarutso yamanutse na menu yamanutse imbere .dropdown
, cyangwa ikindi kintu gitangaza position: relative;
. Noneho kora menu.
- <div class = "igitonyanga" >
- <! - Ihuza cyangwa buto kugirango uhindure ibitonyanga ->
- <ul class = "dropdown-menu" uruhare = "menu" aria-labelledby = "dLabel" >
- <li> <a tabindex = "-1" href = "#"> Igikorwa </a> </li>
- <li> <a tabindex = "-1" href = "#"> Ikindi gikorwa </a> </li>
- <li> <a tabindex = "-1" href = "#"> Ikindi kintu hano </a> </li>
- <li urwego = "umutandukanya" > </li>
- <li> <a tabindex = "-1" href = "#"> Ihuza ritandukanye </a> </li>
- </ul>
- </div>
Huza menus iburyo hanyuma wongereho urwego rwinyongera rwo guta.
Ongeraho iburyo .pull-right
kugirango .dropdown-menu
uhuze menu yamanutse.
- <ul class = "guta-menu gukurura-iburyo" uruhare = "menu" aria-labelledby = "dLabel" >
- ...
- </ul>
Ongeraho .disabled
kuri a <li>
kumanuka kugirango uhagarike umurongo.
- <ul class = "dropdown-menu" uruhare = "menu" aria-labelledby = "dropmanMenu" >
- <li> <a tabindex = "-1" href = "#"> Ihuza risanzwe </a> </li>
- <li class = "ubumuga" > <a tabindex = "-1" href = "#"> Ihuza ryabamugaye </a> </li>
- <li> <a tabindex = "-1" href = "#"> Undi murongo </a> </li>
- </ul>
Ongeraho urwego rwinyongera rwibintu byamanutse, bigaragara kuri hover nkibya OS X, hamwe nibintu byoroshye byongeweho. Ongeraho icyaricyo .dropdown-submenu
cyose li
muri menu ihari yo gutondeka byikora.
- <ul class = "dropdown-menu" uruhare = "menu" aria-labelledby = "dLabel" >
- ...
- <li urwego = "guta-submenu" >
- <a tabindex = "-1" href = "#"> Amahitamo menshi </a>
- <ul class = "ibitonyanga-menu" >
- ...
- </ul>
- </li>
- </ul>
Kwiyoroshya byoroshye byahumetswe na Rdio, byiza kuri porogaramu n'ibisubizo by'ishakisha. Inzitizi nini iragoye kubura, byoroshye kugereranywa, kandi itanga ahantu hanini ho gukanda.
- <div class = "pagination" >
- <ul>
- <li> <a href = "#"> Ibanza </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 = "#"> Ibikurikira </a> </li>
- </ul>
- </div>
Ihuza rirashobora guhinduka mubihe bitandukanye. Koresha .disabled
imiyoboro idahinduka no .active
kwerekana urupapuro rwubu.
- <div class = "pagination" >
- <ul>
- <li class = "ubumuga" > <a href = "#"> & laquo ; </a> </li>
- <li urwego = "rukora" > <a href = "#"> 1 </a> </li>
- ...
- </ul>
- </div>
Urashobora guhitamo guhinduranya ibikorwa cyangwa byahagaritswe inanga kugirango ukureho imikorere yo gukanda mugihe ugumanye uburyo bugenewe.
- <div class = "pagination" >
- <ul>
- <li urwego = "ubumuga" > <span> & laquo; </span> </li>
- <li urwego = "rukora" > <span> 1 </span> </li>
- ...
- </ul>
- </div>
Ibyiza binini cyangwa bito? Ongeraho .pagination-large
, .pagination-small
cyangwa .pagination-mini
kubindi binini.
- <div class = "pagination pagination-nini" >
- <ul>
- ...
- </ul>
- </div>
- <div class = "pagination" >
- <ul>
- ...
- </ul>
- </div>
- <div class = "pagination pagination-nto" >
- <ul>
- ...
- </ul>
- </div>
- <div class = "pagination pagination-mini" >
- <ul>
- ...
- </ul>
- </div>
Ongeramo rimwe mubyiciro bibiri bidahwitse kugirango uhindure guhuza pagination ihuza: .pagination-centered
na .pagination-right
.
- <div class = "pagination pagination-ishingiye" >
- ...
- </div>
- <div class = "pagination pagination-iburyo" >
- ...
- </div>
Byihuse byambere nibikurikira bihuza byoroshye pagination gushyira mubikorwa hamwe nurumuri nuburyo. Nibyiza kurubuga rworoshye nka blog cyangwa ibinyamakuru.
Mburabuzi, pager hagati ihuza.
- <ul class = "pager" >
- <li> <a href = "#"> Mbere </a> </li>
- <li> <a href = "#"> Ibikurikira </a> </li>
- </ul>
Ubundi, urashobora guhuza buri murongo kumpande:
- <ul class = "pager" >
- <li urwego = "ubanza" >
- <a href = "#"> & larr ; Umusaza </a>
- </li>
- <li urwego = "ubutaha" >
- <a href = "#"> Gishya & rarr ; </a>
- </li>
- </ul>
Ipaji ihuza kandi ikoresha icyiciro rusange .disabled
cyingirakamaro kuva kuri pagination.
- <ul class = "pager" >
- <li urwego = "ubumuga bwambere" >
- <a href = "#"> & larr ; Umusaza </a>
- </li>
- ...
- </ul>
Ibirango | Markup |
---|---|
Mburabuzi | <span class="label">Default</span> |
Intsinzi | <span class="label label-success">Success</span> |
Iburira | <span class="label label-warning">Warning</span> |
Ni ngombwa | <span class="label label-important">Important</span> |
Amakuru | <span class="label label-info">Info</span> |
Ibinyuranye | <span class="label label-inverse">Inverse</span> |
Izina | Urugero | Markup |
---|---|---|
Mburabuzi | 1 | <span class="badge">1</span> |
Intsinzi | 2 | <span class="badge badge-success">2</span> |
Iburira | 4 | <span class="badge badge-warning">4</span> |
Ni ngombwa | 6 | <span class="badge badge-important">6</span> |
Amakuru | 8 | <span class="badge badge-info">8</span> |
Ibinyuranye | 10 | <span class="badge badge-inverse">10</span> |
Kubishyira mubikorwa byoroshye, ibirango na badge bizasenyuka gusa (binyuze mumutoranya wa CSS :empty
) mugihe ntakintu kibaho imbere.
Ikintu cyoroshye, cyoroshye kugirango kigaragaze ibintu byingenzi kurubuga rwawe. Ikora neza kubucuruzi no kurubuga-ruremereye.
Nibintu byintwari byoroheje, byoroshye jumbotron-yuburyo bwo guhamagarira kwitondera ibintu byihariye cyangwa amakuru.
- <div class = "intwari-ubumwe" >
- <h1> Umutwe </h1>
- <p> Tagine </p>
- <p>
- <a class = "btn btn- primaire btn-large">
- Wige byinshi
- </a>
- </p>
- </div>
Igikonoshwa cyoroheje h1
kugirango kibe umwanya ukwiye hamwe nigice cyibigize kurupapuro. Irashobora gukoresha h1
'Mburabuzi small
, Ikintu Nka Ibindi Byinshi (hamwe nuburyo bwinyongera).
- <div class = "page-umutwe" >
- <h1> Urugero rwumutwe wumutwe <small> Subtext kumutwe </small> </h1>
- </div>
Mburabuzi, Bootstrap's thumbnail yagenewe kwerekana amashusho ahujwe nibimenyetso bike bisabwa.
Hamwe na bike byongeweho, birashoboka kongeramo ubwoko ubwo aribwo bwose bwa HTML nkimitwe, paragarafu, cyangwa buto muri thumbnail.
Thumbnail (mbere .media-grid
kugeza kuri v1.4) nibyiza kuri gride yamafoto cyangwa videwo, ibisubizo byo gushakisha amashusho, ibicuruzwa bicuruzwa, portfolios, nibindi byinshi. Birashobora kuba amahuza cyangwa ibirimo bihamye.
Ikimenyetso cya Thumbnail kiroroshye-a ul
hamwe numubare uwo ariwo wose wali
wibintu byose bisabwa. Nibindi byoroshye guhinduka, kwemerera ubwoko bwibirimo byose hamwe nibindi byinshi byo gushiraho kugirango uzenguruke ibikubiyemo.
Ubwanyuma, igikumwe gikoresha sisitemu ya gride ya sisitemu isanzwe-nka .span2
cyangwa .span3
-kugenzura ibipimo bya thumbnail.
Nkuko byavuzwe mbere, ibimenyetso bisabwa kuri thumbnail biroroshye kandi byoroshye. Hano reba uburyo busanzwe bwo gushiraho amashusho :
- <ul class = "igikumwe" >
- <li urwego = "span4" >
- <a href = "#" class = "thumbnail"> _
- <img data-src = "ufite.js / 300x200" alt = "" >
- </a>
- </li>
- ...
- </ul>
Kubisanzwe HTML yibirimo muri thumbnail, marike ihinduka gato. Kwemerera guhagarika urwego urwego aho ariho hose, duhinduranya <a>
ibintu <div>
nkibi:
- <ul class = "igikumwe" >
- <li urwego = "span4" >
- <div class = "igikumwe" >
- <img data-src = "ufite.js / 300x200" alt = "" >
- <h3> Ikirango cya Thumbnail </h3>
- <p> Inyandiko ntoya ... </p>
- </div>
- </li>
- ...
- </ul>
Shakisha amahitamo yawe yose hamwe nibyiciro bitandukanye bya gride ushobora kubona. Urashobora kandi kuvanga no guhuza ubunini butandukanye.
Kuzuza inyandiko iyariyo yose na buto yo kwirukana .alert
kubutumwa bwibanze bwo kuburira.
- <div class = "menyesha" >
- <buto ubwoko = "buto" urwego = "gufunga" data-gusezerera = "kumenyesha" > & ibihe; </button>
- <strong> Iburira! </strong> Kugenzura neza yo wenyine, ntabwo ureba neza.
- </div>
Terefone igendanwa ya Safari na mobile Opera, usibye data-dismiss="alert"
ikiranga, bisaba an href="#"
yo kwirukana imenyesha mugihe ukoresheje <a>
tagi.
- <a href = "#" class = "gufunga" data-dismiss = "alert"> & ibihe; </a>
Ubundi, urashobora gukoresha ikintu <button>
hamwe namakuru yikiranga, twahisemo gukora kubitabo byacu. Mugihe ukoresha <button>
, ugomba gushiramo type="button"
cyangwa impapuro zawe ntizishobora gutanga.
- <buto ubwoko = "buto" urwego = "gufunga" data-gusezerera = "kumenyesha" > & ibihe; </button>
Koresha imenyesha jQuery plugin kugirango byihuse kandi byoroshye kwirukana integuza.
Kubutumwa burebure, ongera padi hejuru no hepfo yumwitozo wongeyeho wongeyeho .alert-block
.
Byiza kugenzura yo wenyine, ntabwo ureba neza cyane. Nulla vitae elit libero, pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.
- <div class = "kumenyesha integuza-guhagarika" >
- <buto ubwoko = "buto" urwego = "gufunga" data-gusezerera = "kumenyesha" > & ibihe; </button>
- <h4> Kuburira! </h4>
- Byiza kugenzura yo wenyine, ntabwo uri ...
- </div>
Ongeraho amasomo atabishaka kugirango uhindure ibisobanuro.
- <div class = "kumenyesha-kwibeshya" >
- ...
- </div>
- <div class = "kumenyesha-gutsinda" >
- ...
- </div>
- <div class = "kumenyesha amakuru-amakuru" >
- ...
- </div>
Mburabuzi Iterambere ryumurongo hamwe na vertical gradient.
- <div class = "iterambere" >
- <div class = "bar" style = " ubugari : 60 %; " > </div>
- </div>
Koresha icyiciro kugirango ukore ingaruka. Ntiboneka muri IE7-8.
- <div class = "amajyambere atera imbere "
- <div class = "bar" style = " ubugari : 20 %; " > </div>
- </div>
Ongeraho .active
kugirango .progress-striped
ushushanye imirongo iburyo cyangwa ibumoso. Ntiboneka muri verisiyo zose za IE.
- <div class = "iterambere ryiterambere-rigizwe nibikorwa" >
- <div class = "bar" style = " ubugari : 40 %; " > </div>
- </div>
Shira utubari twinshi murimwe .progress
kugirango ubishyire hamwe.
- <div class = "iterambere" >
- <div class = "bar bar-intsinzi" style = " ubugari : 35 %; " > </div>
- <div class = "umurongo wo kuburira" style = " ubugari : 20 %; " > </div>
- <div class = "bar bar-danger" style = " ubugari : 10 %; " > </div>
- </div>
Utubari twiterambere dukoresha bimwe mubuto bumwe no kumenyesha ibyiciro kuburyo buhoraho.
- <div class = "iterambere ryiterambere-amakuru" >
- <div class = "bar" style = " ubugari : 20 % " > </div>
- </div>
- <div class = "iterambere ryiterambere-intsinzi" >
- <div class = "bar" style = " ubugari : 40 % " > </div>
- </div>
- <div class = "iterambere ryiterambere-kuburira" >
- <div class = "bar" style = " ubugari : 60 % " > </div>
- </div>
- <div class = "iterambere ryiterambere-akaga" >
- <div class = "bar" style = " ubugari : 80 % " > </div>
- </div>
Bisa namabara akomeye, twagiye dutandukanya imirongo yiterambere.
- <div class = "iterambere ryiterambere-amakuru yiterambere-umurongo" >
- <div class = "bar" style = " ubugari : 20 % " > </div>
- </div>
- <div class = "iterambere ryiterambere-intsinzi iterambere-ryambuwe" >
- <div class = "bar" style = " ubugari : 40 % " > </div>
- </div>
- <div class = "iterambere ryiterambere-kuburira iterambere-umurongo" >
- <div class = "bar" style = " ubugari : 60 % " > </div>
- </div>
- <div class = "iterambere ryiterambere-akaga iterambere-ryambuwe" >
- <div class = "bar" style = " ubugari : 80 % " > </div>
- </div>
Utubari twiterambere dukoresha CSS3 gradients, inzibacyuho, na animasiyo kugirango ugere ku ngaruka zabo zose. Ibiranga ntibishyigikiwe muri IE7-9 cyangwa verisiyo ishaje ya Firefox.
Imirongo mbere ya Internet Explorer 10 na Opera 12 ntabwo ishigikira animasiyo.
Uburyo bukuramo ibintu byubaka ubwoko butandukanye bwibigize (nkibitekerezo bya blog, Tweets, nibindi) biranga ishusho ibumoso cyangwa iburyo-ihuza ishusho hamwe nibirimo.
Itangazamakuru risanzwe ryemerera kureremba ikintu cyitangazamakuru (amashusho, videwo, amajwi) ibumoso cyangwa iburyo bwibice.
- <div class = "itangazamakuru" >
- <a class = "gukuramo-ibumoso" href = "#"> _
- <img urwego = " itangazamakuru-ikintu" data-src = "ufite.js / 64x64" >
- </a>
- <div class = "itangazamakuru-umubiri" >
- <h4 urwego = " umutwe-w'itangazamakuru" > Umutwe w'itangazamakuru </h4>
- ...
- <! - Ikintu cyitangazamakuru cyashyizwe ahagaragara ->
- <div class = "itangazamakuru" >
- ...
- </div>
- </div>
- </div>
Hamwe na marike yinyongera, urashobora gukoresha itangazamakuru imbere murutonde (ingirakamaro kubitekerezo cyangwa ibitekerezo byurutonde).
Cras icara amet nibh libero, muri gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum muri vulputate kuri, tempus viverra turpis.
- <ul class = "itangazamakuru-urutonde" >
- <li urwego = "itangazamakuru" >
- <a class = "gukuramo-ibumoso" href = "#"> _
- <img urwego = " itangazamakuru-ikintu" data-src = "ufite.js / 64x64" >
- </a>
- <div class = "itangazamakuru-umubiri" >
- <h4 urwego = " umutwe-w'itangazamakuru" > Umutwe w'itangazamakuru </h4>
- ...
- <! - Ikintu cyitangazamakuru cyashyizwe ahagaragara ->
- <div class = "itangazamakuru" >
- ...
- </div>
- </div>
- </li>
- </ul>
Koresha iriba nkibintu byoroshye kubintu kugirango biguhe inset.
- <div class = "neza" >
- ...
- </div>
Igenzura padding hamwe nu mpande zegeranye hamwe nibyiciro bibiri byahinduwe.
- <div class = "neza-nini-nini" >
- ...
- </div>
- <div class = "neza-nto" >
- ...
- </div>
Koresha igishushanyo rusange cyo gufunga kugirango wirukane ibirimo nka moderi no kumenyesha.
- <buto icyiciro = "gufunga" > & ibihe; </button>
Ibikoresho bya iOS bisaba href="#"
gukanda ibyabaye niba ushaka gukoresha inanga.
- <a class = "close" href = "#"> & ibihe; </a>
Byoroheje, byibanze kumasomo mato yerekanwe cyangwa imyitwarire ihindagurika.
Fata ikintu gisigaye
- icyiciro = "gukurura-ibumoso"
- . gukurura - ibumoso {
- kureremba : ibumoso ;
- }
Fata ikintu neza
- icyiciro = "gukurura-iburyo"
- . gukurura - iburyo {
- kureremba : iburyo ;
- }
Hindura ibara ryibintu kuri#999
- icyiciro = "ucecetse"
- . muted {
- ibara : # 999;
- }
Kuraho i ikintu float
icyo ari cyo cyose
- icyiciro = "ibisobanuro"
- . Ibisobanuro {
- * zoom : 1 ;
- &: mbere ,
- &: nyuma {
- kwerekana : imbonerahamwe ;
- ibirimo : "" ;
- }
- &: nyuma {
- bisobanutse : byombi ;
- }
- }