Ba douzaines ya ba composants oyo ekoki kosalelama lisusu etongami na Bootstrap mpo na kopesa navigation, ba alertes, ba popovers, mpe mingi mosusu.
Pagination ultra simpliste et minimalement styled inspirée par Rdio, bien pona ba apps na ba résultats ya recherche. Bloc ya monene ezali mpasi mpo na kozanga, ekoki ko évoluer na pete, mpe epesaka bisika ya minene ya ko cliquer.
Ba liens ezali personnalisable mpe esalaka na nombre ya ba circonstances na classe oyo ebongi. .disabled
mpo na ba liens oyo okoki ko cliquer te mpe .active
mpo na page ya lelo.
Bakisa moko ya bakelasi mibale oyo okoki kopona mpo na kobongola boyokani ya ba liens ya pagination: .pagination-centered
mpe .pagination-right
.
Composant ya pagination par défaut ezali flexible mpe esalaka na nombre ya ba variations.
Enveloppé na <div>
, pagination ezali kaka <ul>
.
- <div classe = "kosala lokasa" >
- <ul>
- <li><a href = "#" > Liboso </a></li>
- <li kelasi = "mosala" >
- <a href = "#" > 1 </a>
- </li>
- <li><a href = "#" > 2 </a></li> Ezali ndenge nini?
- <li><a href = "#" > 3 </a></li> Ezali ndenge nini?
- <li><a href = "#" > 4 </a></li> Ezali ndenge nini?
- <li><a href = "#" > Na sima </a></li>
- </ul>
- </div>
Composant pager ezali ensemble ya ba liens pona ba implémentations simples ya pagination na marquage ya lumière et même ba styles ya léger. Ezali malamu mingi mpo na ba sites ya pete lokola ba blogs to ba magazines.
Ba liens ya pager esalela pe .disabled
classe générale à partir ya pagination.
Par défaut, pager ezo centrer ba liens.
- <ul kelasi = "pager" >
- <li>
- <a href = "#" > Liboso </a>
- </li>
- <li>
- <a href = "#" > Na sima </a>
- </li>
- </ul>
Ba étiquettes | Kosala bilembo |
---|---|
Mbeba | <span class="label">Default</span> |
Kolonga | <span class="label label-success">Success</span> |
Likebisi | <span class="label label-warning">Warning</span> |
Ntina | <span class="label label-important">Important</span> |
Info | <span class="label label-info">Info</span> |
Inverse | <span class="label label-inverse">Inverse</span> |
Badge ezali biloko mikemike mpe ya pɛtɛɛ mpo na kolakisa elembo to motángo ya lolenge moko boye. Bazwamaka mingi na ba clients ya email lokola Mail.app to na ba apps mobiles mpo na ba notifications ya push.
Nkombo | Ndakisa | Kosala bilembo |
---|---|---|
Mbeba | 1. 1. | <span class="badge">1</span> |
Kolonga | 2. 2 | <span class="badge badge-success">2</span> |
Likebisi | 4. | <span class="badge badge-warning">4</span> |
Ntina | 6 | <span class="badge badge-important">6</span> |
Info | 8 | <span class="badge badge-info">8</span> |
Inverse | 10 | <span class="badge badge-inverse">10</span> |
Bootstrap epesaka composant moko ya pete, flexible oyo babengaka unité ya héros pona kolakisa ba contenus na site na yo. Esalaka malamu na ba sites ya marketing mpe oyo ezali na makambo mingi.
Envelopper contenus na yo na div
like so:
- <div class = "elombe-unité" >
- <h1> Motó ya likambo </h1>
- <p> Molongo ya bilembo </p>
- <p>
- <a classe = "btn btn-ya liboso btn-monene" >
- Yekola makambo mosusu
- </a>
- </p>
- </div>
Oyo ezali unité ya elombe ya pete, composant ya style jumbotron ya pete pona kobenga attention supplémentaire na ba contenus to ba informations oyo elakisami.
Coquille moko ya pete mpo na h1
mpo na esika oyo ebongi mpe kokabola biteni ya makambo na lokasa moko. Ekoki kosalela h1
's default small
, élément lokola mingi ya ba composants misusu (na ba styles ya kobakisa).
- <div class = "motó ya lokasa" >
- <h1> Ndakisa ya motó ya lokasa </h1>
- </div>
Na ndenge ya libela, bililingi ya mikemike ya Bootstrap ebongisami mpo na kolakisa bililingi oyo ezali na boyokani na bilembo moke oyo esengeli.
Na mwa marquage ya kobakisa, ezali na nzela ya kobakisa lolenge nyonso ya makambo ya HTML lokola mitó ya makambo, baparagrafe, to ba boutons na kati ya bililingi mikemike.
Ba miniatures (liboso .media-grid
tii na v1.4) ezali malamu mpo na ba grille ya ba photos to ba vidéos, ba résultats ya recherche ya ba images, ba produits ya détail, ba portefeuilles, mpe mingi mosusu. Ekoki kozala ba liens to ba contenus statiques.
Kosala bilembo ya moke ezali pɛtɛɛ —a oyo ezali ul
na motángo nyonso ya li
biloko ezali kaka oyo esengeli. Ezali mpe super flexible, kopesa nzela na lolenge nyonso ya makambo na kaka mwa marquage mingi mpo na kozinga makambo na yo.
Na nsuka, eteni ya bililingi ya mike esalela bakelasi ya système ya grille oyo ezali —lokola .span2
to .span3
—mpo na kokamba bonene ya bililingi ya mike.
Ndenge tolobaki yango liboso, elembo oyo esengeli mpo na bililingi ya mikemike ezali pɛtɛɛ mpe ezali pɛtɛɛ. Tala ndenge ya kosala na ndenge ya liboso mpo na bilili oyo ezali na boyokani :
- <ul class = "bilili ya mike" >
- <li kelasi = "span3" >
- <a href = "#" classe = "elilingi ya moke" >
- <img src = "Esika ya kofanda/260x180" alt = "" >
- </a>
- </li>
- ...
- </ul>
Mpo na makambo ya HTML oyo obongisi na bililingi ya mikemike, elembo ebongwanaka mwa moke. Pona ko permettre contenus ya niveau ya bloc partout, to swap the <a>
pona <div>
like donc:
- <ul class = "bilili ya mike" >
- <li kelasi = "span3" >
- <div class = "elilingi ya moke" >
- <img src = "Esika ya kofanda/260x180" alt = "" >
- <h5> Etiketi ya elilingi ya moke </h5>
- <p> Liloba ya moke kaka awa... </p>
- </div>
- </li>
- ...
- </ul>
Na Bootstrap 2, tosili ko simplifier classe ya base: .alert
na esika ya .alert-message
. Tokitisi mpe bilembo ya moke oyo esengeli —te <p>
esengeli na ndenge ya libela, kaka oyo ya libándá <div>
.
Mpo na composant oyo eumelaka mingi na code moke, tolongoli lolenge ya kokesana mpo na ba alertes ya bloc, ba messages oyo eyaka na remplissage mingi mpe typiquement texte mingi. Kelasi yango mpe ebongwanaki mpe ekómi .alert-block
.
Bootstrap eza na plugin ya jQuery ya malamu oyo esimbaka ba messages ya alerte, kosala que ko rejeter yango noki pe facile.
Envelopper message na yo na icône ya fermeture optionnelle na div na classe simple.
- <div classe = "kebisi" >
- <bouton classe = "kanga" data-dismiss = "alerte" > × </bouton>
- <strong> Kebisa! </strong> Meilleur vérifier yo yo moko, ozali komonana malamu mingi te.
- </div>
Mitó likoló! Ba appareils iOS esengaka an href="#"
pona ko rejeter ba alertes. Sala makasi otia yango na attribut ya ba données pona ba icônes ya anchor close. Na lolenge mosusu, okoki kosalela <button>
eleman moko oyo ezali na attribut ya ba données, oyo toponaki kosala mpo na ba docs na biso. Ntango ozali kosalela <button>
, osengeli kotya yango type="button"
to mpe bakoki kotinda baformilɛrɛ na yo te.
Bobakisi na pete message ya alerte standard na ba classes mibale ya option: .alert-block
pona ba contrôles ya remplissage pe ya texte mingi pe .alert-heading
pona motó ya likambo oyo ekokani.
Meilleur vérifier yo self, ozali komonana malamu mingi te. Nulla vitae elit libero, oyo ezali na mbula-mpɛmbɛ oyo babengi pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.
- <div class = "bokebisi-bokebisi" >
- <a class = "kokanga" data-dismiss = "kebisi" href = "#" > × </a>
- <h4 class = "motó ya likambo ya likebisi" > Likebisi! </h4>
- Meilleur vérifier yo self, ozali te...
- </div>
- <div class = "libunga ya likebisi ya likebisi" >
- ...
- </div>
- <div class = "alerte ya kokebisa-elonga" >
- ...
- </div>
- <div class = "liyebisi ya likebisi ya likebisi" >
- ...
- </div>
Barre ya progression par défaut na gradient vertical.
- <div classe = "kokende liboso" >
- <div kelasi = "barre".
- style = " bonene : 60 %; " ></div>
- </div>
Esalelaka gradient mpo na kosala effet rayé (IE te).
- <div class = "bokende liboso-striped" >
- <div kelasi = "barre".
- style = " bonene : 20 %; " ></div>
- </div>
Azuaka exemple rayé pe a animer yango (IE te).
- <div class = "bokende liboso-striped."
- ezali kosala" >
- <div kelasi = "barre".
- style = " bonene : 40 %; " ></div>
- </div>
Ba barres ya progrès esalela mwa ndambo ya bouton moko mpe ba classes ya alerte mpo na ba styles oyo ezali constant.
Ndenge moko na balangi ya makasi, tozali na ba barres ya progression ya ba rayures ndenge na ndenge.
Ba barres ya progrès esalelaka ba transitions CSS3, yango wana soki o ajuster dynamiquement largeur via javascript, eko changer taille sans problème.
Soki osaleli .active
kelasi, ba .progress-striped
barres na yo ya progrès eko animer ba rayures gauche à droite.
Ba barres ya progrès esalela ba gradients ya CSS3, ba transitions, na ba animations pona kozua ba effets na yango nionso. Makambo oyo esimbami te na IE7-9 to ba versions ya kala ya Firefox.
Opera na IE esimbaka ba animations te na tango oyo.
Salelá libulu lokola effet simple na élément moko mpo na kopesa yango effet inset.
- <div classe = "malamu" >
- ...
- </div>
Salelá elembo ya bokangami ya monene mpo na koboya makambo lokola ba modal mpe makebisi.
- <bouton classe = "kokanga" > &ntango; </bouton>
Ba appareils ya iOS esengaka href="#" pona ba événements ya clic soki olingi kosalela anchor.
- <a classe = "kokanga" href = "#" > &ntango; </a>