Ibice byinshi byongeye gukoreshwa byubatswe muri Bootstrap kugirango bitange inzira, kumenyesha, popovers, nibindi byinshi.
Ultra yoroshye kandi yoroheje yerekana pagination yahumetswe na Rdio, nziza kuri porogaramu n'ibisubizo by'ishakisha. Inzitizi nini iragoye kubura, byoroshye kugereranywa, kandi itanga ahantu hanini ho gukanda.
Ihuza irashobora guhindurwa kandi ikora mubihe byinshi hamwe nicyiciro gikwiye. .disabled
kumirongo idahinduka no .active
kurupapuro rwubu.
Ongeramo kimwe mubyiciro bibiri bidahwitse kugirango uhindure guhuza pagination ihuza: .pagination-centered
na .pagination-right
.
Mburabuzi pagination ibice biroroshye kandi ikora muburyo butandukanye.
Bipfunyitse muri a <div>
, pagination ni a <ul>
.
- <div class = "pagination" >
- <ul>
- <li> <a href = "#"> Ibanza </a> </li>
- <li urwego = "rukora" >
- <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 = "#"> Ibikurikira </a> </li>
- </ul>
- </div>
Igice cya pager ni ihuriro ryibihuza byoroheje byo gushyira mubikorwa hamwe nurumuri ndetse nuburyo bworoshye. Nibyiza kurubuga rworoshye nka blog cyangwa ibinyamakuru.
Ipaji ihuza kandi ikoresha .disabled
icyiciro rusange uhereye kuri pagination.
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>
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> |
Badges ni ntoya, yoroshye ibice byo kwerekana icyerekezo cyangwa kubara ubwoko runaka. Bakunze kuboneka mubakiriya ba imeri nka Mail.app cyangwa kuri porogaramu zigendanwa kugirango bamenyeshe.
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> |
Bootstrap itanga ibintu byoroshye, byoroshye byitwa intwari kugirango yerekane ibiri kurubuga rwawe. Ikora neza kubucuruzi no kurubuga-ruremereye.
Kuzuza ibikubiyemo muri div
ubu buryo:
- <div class = "intwari-ubumwe" >
- <h1> Umutwe </h1>
- <p> Tagine </p>
- <p>
- <a class = "btn btn- primaire btn-large">
- Wige byinshi
- </a>
- </p>
- </div>
Nibintu byintwari byoroheje, byoroshye jumbotron-yuburyo bwo guhamagarira kwitondera cyane ibintu bigaragara cyangwa amakuru.
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 wurupapuro </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.
Thumbnail marup iroroshye - a ul
hamwe numubare uwo ariwo wose li
wibintu byose bisabwa. Nibindi byoroshye guhinduka, kwemerera ubwoko bwibirimo byose hamwe nibimenyetso byinshi byo gupfunyika 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 = "span3" >
- <a href = "#" class = "thumbnail"> _
- <img src = "https://placehold.it/260x180" alt = "" >
- </a>
- </li>
- ...
- </ul>
Kubisanzwe HTML yibirimo muri thumbnail, marike ihinduka gato. Kwemerera guhagarika urwego urwego aho ariho hose, twahinduye i <a>
kubintu <div>
nkibi:
- <ul class = "igikumwe" >
- <li urwego = "span3" >
- <div class = "igikumwe" >
- <img src = "https://placehold.it/260x180" alt = "" >
- <h5> Ikirango cya Thumbnail </h5>
- <p> Ibisobanuro bito hano hano ... </p>
- </div>
- </li>
- ...
- </ul>
Hamwe na Bootstrap 2, tworoheje icyiciro shingiro: .alert
aho .alert-message
. Twagabanije kandi ibimenyetso byibuze bisabwa - oya <p>
ntibisabwa byanze bikunze, hanze gusa <div>
.
Kubintu byinshi biramba hamwe na code nkeya, twakuyeho itandukaniro ryo kureba kubihagarika, ubutumwa buzana na padi nyinshi kandi mubisanzwe inyandiko nyinshi. Icyiciro nacyo cyahindutse kuri .alert-block
.
Bootstrap izanye plugin nini ya jQuery ishyigikira ubutumwa bwitondewe, bigatuma kubirukana byihuse kandi byoroshye.
Kuzuza ubutumwa bwawe hamwe nigishushanyo cyo gufunga muri div hamwe nicyiciro cyoroshye.
- <div class = "menyesha" >
- <buto icyiciro = "gufunga" data-gusezerera = "kumenyesha" > × </button>
- <strong> Iburira! </strong> Kugenzura neza yo wenyine, ntabwo ureba neza.
- </div>
Umutwe! Ibikoresho bya iOS bisaba an href="#"
kwirukana imenyesha. Wemeze kubishyiramo hamwe namakuru yimiterere ya ankeri ifunga amashusho. Ubundi, urashobora gukoresha ikintu <button>
hamwe namakuru yikiranga, twahisemo gukora kubitabo byacu. Mugihe ukoresha <button>
, ugomba gushiramo type="button"
cyangwa impapuro zawe ntizishobora gutanga.
Byoroshe kwagura ubutumwa busanzwe bwo kumenyesha hamwe nibyiciro bibiri bidahitamo: .alert-block
kuri padi nyinshi hamwe ninyandiko igenzura hamwe no .alert-heading
guhuza umutwe.
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" >
- <a class = "close" data-dismiss = "alert" href = "#"> × </a> _
- <h4 urwego = " kumenyesha-umutwe" > Kuburira! </h4>
- Byiza kugenzura yo wenyine, ntabwo uri ...
- </div>
- <div class = "kumenyesha-kwibeshya" >
- ...
- </div>
- <div class = "kumenyesha-gutsinda" >
- ...
- </div>
- <div class = "kumenyesha amakuru-amakuru" >
- ...
- </div>
Mburabuzi Iterambere umurongo hamwe na vertical gradient.
- <div class = "iterambere" >
- <div class = "akabari"
- style = " ubugari : 60 %; " > </div>
- </div>
Koresha icyiciro kugirango ukore ingaruka (nta IE).
- <div class = "amajyambere atera imbere" >
- <div class = "akabari"
- style = " ubugari : 20 %; " > </div>
- </div>
Fata urugero rwakuweho hanyuma ukarushushanya (nta IE).
- <div class = "amajyambere atera imbere
- ikora " >
- <div class = "akabari"
- style = " ubugari : 40 %; " > </div>
- </div>
Utubari twiterambere dukoresha bimwe mubuto bumwe no kumenyesha ibyiciro kuburyo buhoraho.
Bisa namabara akomeye, twagiye dutandukanya imirongo yiterambere.
Utubari twiterambere dukoresha inzibacyuho ya CSS3, niba rero uhinduye muburyo bugari ukoresheje ubugari ukoresheje javascript, bizahinduka neza.
Niba ukoresheje .active
icyiciro, .progress-striped
utubari twawe twiterambere tuzahindura imirongo ibumoso iburyo.
Utubari twiterambere dukoresha CSS3 gradients, inzibacyuho, na animasiyo kugirango ugere ku ngaruka zabo zose. Ibiranga ntabwo bishyigikiwe muri IE7-9 cyangwa verisiyo ishaje ya Firefox.
Opera na IE ntabwo bashyigikiye animasiyo muriki gihe.
Koresha neza nkibintu byoroshye kubintu kugirango utange inset.
- <div class = "neza" >
- ...
- </div>
Koresha igishushanyo rusange cyo gufunga kugirango wirukane ibirimo nka moderi no kumenyesha.
- <buto icyiciro = "gufunga" > & ibihe; </button>
Ibikoresho bya iOS bisaba href = "#" kugirango ukande ibyabaye niba uhisemo gukoresha inanga.
- <a class = "close" href = "#"> & ibihe; </a>