Fɛn tan ni caman minnu bɛ se ka baara kɛ kokura, olu jɔra walasa ka kurunbokari, lasɔminiw, popovers ani fɛn wɛrɛw di.
Menu min bɛ se ka wuli ka bɔ a nɔ na, min bɛ se ka wuli ka bɔ a nɔ na, walasa ka jɛgɛnsira lisi jira. A kɛra ɲɔgɔndan ye ni JavaScript sɛgɛsɛgɛlikɛlan ye .
- <ul class = "menu-jigin" jɔyɔrɔ = "menu" aria-labelledby = "Menu-jigin" >
- <li><a tabindex = "-1" href = "#" > wale </a></li>
- <li><a tabindex = "-1" href = "#" > wale wɛrɛ </a></li>
- <li><a tabindex = "-1" href = "#" > fɛn wɛrɛ bɛ yan </a></li>
- <li kalasi = "jatebɔlan" </li>
- <li><a tabindex = "-1" href = "#" > Jɛɲɔgɔnya faralen ɲɔgɔn kan </a></li>
- </ul>
Ni an ye 'yɔrɔ dɔrɔn lajɛ, HTML wajibiyalen filɛ nin ye. Aw ka kan ka 'sènfɛ-sɛbɛnni-minɛn ni 'sènfɛ-sɛbɛnni-minɛnw siri .dropdown
, walima fɛn wɛrɛ min bɛ 'fɔli Kɛ position: relative;
. O kɔ, menu (menu) dabɔ dɔrɔn.
- <div kalasi = "dɔnkilida" >
- <!-- Jɛɲɔgɔnya walima butɔni ka toggle dropdown -->
- <ul kalasi = "dugukolo-yɔrɔ" jɔyɔrɔ = "menu" aria-labelledby = "dLabel" >
- <li><a tabindex = "-1" href = "#" > wale </a></li>
- <li><a tabindex = "-1" href = "#" > wale wɛrɛ </a></li>
- <li><a tabindex = "-1" href = "#" > fɛn wɛrɛ bɛ yan </a></li>
- <li kalasi = "jatebɔlan" </li>
- <li><a tabindex = "-1" href = "#" > Jɛɲɔgɔnya faralen ɲɔgɔn kan </a></li>
- </ul>
- </div> ye
Meniw labɛn ka taa kinin fɛ ani ka fara a kan ni nivo wɛrɛw ye minnu bɛ jigin.
A fara a kan .pull-right
ka .dropdown-menu
taa kinin fɛ, i ka menu (yɔrɔ) labɛn.
- <ul kalasi = "jigin-menu sama-niman" jɔyɔrɔ = "menu" aria-labelledby = "dLabel" >
- ...
- </ul>
A bɛ fara a .disabled
kan <li>
yɔrɔ la walasa ka jɛgɛnsira bali.
- <ul class = "menu-jigin" jɔyɔrɔ = "menu" aria-labelledby = "Menu-jigin" >
- <li><a tabindex = "-1" href = "#" > Jɛɲɔgɔnya sabatili </a></li>
- <li class = "baarakɛbali" ><a tabindex = "-1" href = "#" > Jɛɲɔgɔnya baarakɛbali </a></li>
- <li><a tabindex = "-1" href = "#" > Jɛɲɔgɔnya wɛrɛ </a></li>
- </ul>
Meniw dɔw fara a kan, minnu bɛ bɔ hover kan i n’a fɔ OS X ta, ni taamasiyɛn nɔgɔman dɔw faralen ye ɲɔgɔn kan. Aw bɛ dɔ fara .dropdown-submenu
fɛn o fɛn li
kan min bɛ menu dɔ kɔnɔ min bɛ yen walasa ka automatique styling kɛ.
- <ul kalasi = "dugukolo-yɔrɔ" jɔyɔrɔ = "menu" aria-labelledby = "dLabel" >
- ...
- <li kalasi = "dakun-kɔnɔ-fɛnw" >
- <a tabindex = "-1" href = "#" > Sugandili wɛrɛw </a>
- <ul kalasi = "dakun-yɔrɔ" >
- ...
- </ul>
- </li>
- </ul>
Pagenation simple inspiré par Rdio, a ka ɲi kosɛbɛ apps ani ɲinini jaabiw kama. Bloki belebele in ka gɛlɛn ka tɛmɛn, a bɛ se ka sɛgɛsɛgɛ nɔgɔya la, wa a bɛ digi yɔrɔbaw di.
- <div kalasi = "ɲɛnajɛ" >
- <ul> ye
- <li><a href = "#" > Kɔrɔlen </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 = "#" > nata </a></li>
- </ul>
- </div> ye
Lienw bɛ se ka ladilan ka kɛɲɛ ni cogoya wɛrɛw ye. Baara kɛ ni yɔrɔw ye minnu tɛ se .disabled
ka digi ani .active
ka ɲɛ min bɛ yen sisan, o jira.
- <div kalasi = "ɲɛnajɛ" >
- <ul> ye
- <li kalasi = "baarakɛbali" ><a href = "#" > « </a></li> , o ye
- <li kalasi = "baarakɛla" ><a href = "#" > 1 </a></li>
- ...
- </ul>
- </div> ye
Aw bɛ se ka ankɔri minnu bɛ baara kɛ walima minnu tɛ baara kɛ, aw bɛ se ka olu sɛgɛsɛgɛ ni spanw ye walasa ka klikɛli baarakɛcogo bɔ yen k’a sɔrɔ aw bɛ cogoya laɲinitaw mara.
- <div kalasi = "ɲɛnajɛ" >
- <ul> ye
- <li kalasi = "baarakɛbali" ><span> « </span></li> ye
- <li kalasi = "baarakɛla" ><span> 1 </span></li>
- ...
- </ul>
- </div> ye
Aw b’a fɛ ka ɲɛ minnu ka bon walima minnu ka dɔgɔ? Aw bɛ .pagination-large
, .pagination-small
, walima .pagination-mini
fara a kan walasa ka bonya wɛrɛw sɔrɔ.
- <div class = "ɲɛnajɛ ɲɛ-ba" >
- <ul> ye
- ...
- </ul>
- </div> ye
- <div kalasi = "ɲɛnajɛ" >
- <ul> ye
- ...
- </ul>
- </div> ye
- <div class = "ɲɛnajɛ ɲɛ-fitini" >
- <ul> ye
- ...
- </ul>
- </div> ye
- <div class = "ɲɛnajɛ ɲɛ-mini" >
- <ul> ye
- ...
- </ul>
- </div> ye
Aw bɛ kalansen fila dɔ fara a kan minnu bɛ se ka sugandi walasa ka ɲɛw ladɛrɛsiw labɛncogo Changer: .pagination-centered
ani .pagination-right
.
- <div class = "ɲɛnajɛ ɲɛɲini-cɛmancɛ" >
- ...
- </div> ye
- <div class = "ɲɛnajɛ ɲɛ-niman" >
- ...
- </div> ye
Jɛɲɔgɔnya teliyalenw ni nataw ɲɛw waleyali nɔgɔmanw kama ni taamasiyɛn yeelenma ani cogoyaw ye. A ka ɲi kosɛbɛ siti nɔgɔmanw ma i n’a fɔ bulɔguw walima zurunali.
Ka da a kan, pager (pager) bɛ jɛgɛnw cɛmancɛ la.
- <ul kalasi = "pager" >
- <li><a href = "#" > Tɛmɛnen </a></li>
- <li><a href = "#" > nata </a></li>
- </ul>
Ni o tɛ, i bɛ se ka jɛgɛnsira kelen-kelen bɛɛ labɛn ka kɛɲɛ ni kɛrɛw ye:
- <ul kalasi = "pager" >
- <li kalasi = "kɔrɔlen" >
- <a href = "#" > ← Kɔrɔlen </a>
- </li>
- <li kalasi = "nata" >
- <a href = "#" > Kuru kura → </a>
- </li>
- </ul>
Pager links fana bɛ baara Kɛ ni general .disabled
utility class ye ka Bɔ pagination na.
- <ul kalasi = "pager" >
- <li kalasi = "kɔrɔlen bololabaarakɛlaw" >
- <a href = "#" > ← Kɔrɔlen </a>
- </li>
- ...
- </ul>
Labels (Labɛnw). | Markup (Marka) ye |
---|---|
Fɔlɔ | <span class="label">Default</span> |
Sanga | <span class="label label-success">Success</span> |
Lasɔmi | <span class="label label-warning">Warning</span> |
Nafama | <span class="label label-important">Important</span> |
Info | <span class="label label-info">Info</span> |
Inverse (Kɔrɔlen). | <span class="label label-inverse">Inverse</span> |
Tɔ̀gɔ | Misaliya | Markup (Marka) ye |
---|---|---|
Fɔlɔ | 1 ye | <span class="badge">1</span> |
Sanga | 2 ye | <span class="badge badge-success">2</span> |
Lasɔmi | 4 ye | <span class="badge badge-warning">4</span> |
Nafama | 6. 6 | <span class="badge badge-important">6</span> |
Info | 8 ye | <span class="badge badge-info">8</span> |
Inverse (Kɔrɔlen). | 10 ye | <span class="badge badge-inverse">10</span> |
Walasa ka waleyali nɔgɔya, labeliw ni badgew bɛna bin dɔrɔn (CSS ka :empty
sugandilikɛlan fɛ) ni kɔnɔko si tɛ yen.
Fɛn min ka nɔgɔn, min bɛ se ka wuli ka bɔ a nɔ na walasa ka kunnafoni jɔnjɔnw jira i ka siti kan. A bɛ baara kɛ koɲuman jagokɛyɔrɔw kan ani kunnafonidilanw kan minnu kɔnɔkow ka ca.
Nin ye hero unit nɔgɔman ye, jumbotron-style yɔrɔ nɔgɔman ye min bɛ se ka mɔgɔw hakili sama ka taa a fɛ ka ɲɛsin kɔnɔkow walima kunnafoniw ma minnu bɛ jira.
- <div kalasi = "jatigɛwale-jɛkulu" >
- <h1> Kunkanko </h1>
- <p> Tagabolo </p>
- <p> ye
- <a kalasi = "btn btn-fɔlɔ btn-ba" >
- Aw ye kunnafoni wɛrɛw sɔrɔ
- </a>
- </p> , o ye
- </div> ye
A simple shell for an h1
ka yɔrɔ bɛnnenw Bɔ ani k’u tila-tila yɔrɔ dɔw la ɲɛ dɔ kan. A bɛ Se ka baara Kɛ ni h1
's default small
, element ye ka Fàra a yɔrɔ tɔw fanba kan (ni cogoya wɛrɛw ye).
- <div class = "ɲɛ-kunnafoni" >
- <h1> Misali ɲɛ ɲɛ kunkanko <small> Subtext for header </small></h1>
- </div> ye
Ka da a kan, Bootstrap ka ja fitininw dabɔra walasa ka ja minnu bɛ ɲɔgɔn kan, olu jira ni taamasiyɛn fitinin wajibiyalenw ye.
Ni taamaʃyɛn dɔ Fàrala o kan, a bɛ Se ka HTML kɔnɔko sugu bɛɛ Fàra ɲɔgɔn kan i n’a fɔ dakunw, dakunw, walima butɔniw ka Kɛ ja fitininw ye.
Ja fitininw (kɔrɔlen .media-grid
fo ka se v1.4 ma) ka ɲi kosɛbɛ fotow walima wideyow gridw la, ja ɲinini jaabiw, feerefɛnw, portfoliow, ani fɛn caman wɛrɛw. U bɛ se ka kɛ jɛgɛnsira ye walima kɔnɔkow jɔlenw ye.
Ja fitininw taamasiyɛnni ka nɔgɔn—a ul
ni fɛn hakɛ o hakɛ bɛ li
yen, o de ye fɛn bɛɛ ye min ka kan ka kɛ. A fana ye super flexible ye, min bɛ sira Di kunnafoni suguya bɛɛ ma ni markup dɔɔnin dɔrɔn ye ka i ka kɔnɔkow siri.
A laban na, ja fitininw yɔrɔ bɛ baara kɛ ni grid system classes ye minnu bɛ yen—i n’a fɔ .span2
walima .span3
—ja fitininw hakɛw kɔlɔsili kama.
I n’a fɔ a fɔra cogo min na ka tɛmɛ, taamasiyɛn min wajibiyalen don ja fitininw na, o ka nɔgɔn ani a bɛ tilennen. Nin ye ja minnu bɛ ɲɔgɔn kan, olu sigicogo dafalen lajɛ :
- <ul kalasi = "jaabi fitininw" >
- <li kalasi = "span4" >
- <a href = "#" kalasi = "jaabi fitinin" >
- <img data-src = "bololanɛgɛ.js/300x200" alt = "" >
- </a>
- </li>
- ...
- </ul>
HTML kɔnɔkow ladamulenw kama ja fitininw kɔnɔ, taamasiyɛn bɛ Changé dɔɔnin. Walasa ka sira Di bloki nivo kɔnɔkow ma yɔrɔ o yɔrɔ, an bɛ swap the <a>
for a <div>
like so:
- <ul kalasi = "jaabi fitininw" >
- <li kalasi = "span4" >
- <div class = "jaabi fitinin" >
- <img data-src = "bololanɛgɛ.js/300x200" alt = "" >
- <h3> fɛn fitininw labeli </h3>
- <p> ja fitininw ɲɛfɔli... </p>
- </div> ye
- </li>
- ...
- </ul>
Aw ye aw ka sugandiliw bɛɛ sɛgɛsɛgɛ ni grid kalan suguya caman ye minnu bɛ aw bolo. Aw bɛ se fana ka hakɛw ɲagami ani ka u bɛn ɲɔgɔn ma.
Sɛbɛn o sɛbɛn ani butɔni min bɛ se ka bɔ a la, i k’o siri .alert
walasa ka lasɔmini cikan jɔnjɔn sɔrɔ.
- <div kalasi = "kɔlɔsili" >
- <butɔni suguya = "butɔni" kalasi = "dadon" data-dismiss = "kɔlɔsili" > × </button> ye
- <strong> Lakɔlɔsili ! </strong> Best check yo yɛrɛ , i tɛ ɲɛ kojugu .
- </div> ye
Mobile Safari ani Mobile Opera navigatɔrɔw, ka fara data-dismiss="alert"
attribut kan, u bɛ ɲini an href="#"
fɛ ka lasɔminiw bila ka taa ni u bɛ baara kɛ ni <a>
tag ye.
- <a href = "#" kalasi = "dadon" data-dismiss = "lasɔmini" > &waatiw; </a>
O cogo kelen na, i bɛ se ka baara kɛ ni <button>
fɛn dɔ ye min bɛ ni data attribute ye, an ye min sugandi ka kɛ an ka docs ye. Ni i bɛ baara kɛ ni <button>
, i ka kan ka a fara a kan type="button"
walima i ka sɛbɛnw tɛ se ka ci.
- <butɔni suguya = "butɔni" kalasi = "dadon" data-dismiss = "kɔlɔsili" > × </button> ye
Baara kɛ ni lasɔminiw jQuery plugin ye walasa ka lasɔminiw bila teliya la ani nɔgɔya la.
Walasa ka cikan janw sɔrɔ, aw bɛ dɔ fara padding kan min bɛ lasɔmini sɛbɛnfura sanfɛ ani duguma ni aw .alert-block
ye .
Best check yo self, i ma filɛ ka ɲɛ kojugu. Nulla vitae elit libero, o ye fura ye min bɛ wele ko pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl ye fɛn ye min bɛ se ka kɛ fɛn ye min bɛ se ka kɛ fɛn ye.
- <div class = "lasɔmini-kɔlɔsili-blɔki" >
- <butɔni suguya = "butɔni" kalasi = "dadon" data-dismiss = "kɔlɔsili" > × </button> ye
- <h4> Lasɔmini ! </h4> ye
- Best check yo self, i ka...
- </div> ye
Kalanso sugandilenw fara a kan walasa ka lasɔmini dɔ kɔrɔ Changer.
- <div class = "lasɔmini-kɔlɔsili-fili" >
- ...
- </div> ye
- <div class = "lasɔmini-kɔlɔsili-ɲɛtaa" >
- ...
- </div> ye
- <div class = "lasɔmini-kɔlɔsili-kunnafoni" >
- ...
- </div> ye
Progress bar default ni gradient vertical ye.
- <div kalasi = "ɲɛtaa" >
- <div kalasi = "bara" cogoya = " bonya : 60 %; " ></div>
- </div> ye
A bɛ baara Kɛ ni gradient (gradient) ye walasa ka striped effect (fɔcogo sɛrɛkili) Dabɔ. A tɛ sɔrɔ IE7-8 kɔnɔ.
- <div class = "ɲɛtaa ɲɛtaa-sira" >
- <div kalasi = "bara" cogoya = " bonya : 20 %; " ></div>
- </div> ye
A fara a kan .active
walasa .progress-striped
ka jiriw ɲɛnamaya kinin fɛ ka taa numan fɛ. A tɛ sɔrɔ IE bɔko bɛɛ la.
- <div class = "ɲɛtaa ɲɛtaa-sira-baarakɛla" >
- <div kalasi = "bara" cogoya = " bonya : 40 %; " ></div>
- </div> ye
Aw bɛ bara caman bila kelen na .progress
walasa k’u fara ɲɔgɔn kan.
- <div kalasi = "ɲɛtaa" >
- <div kalasi = "bar bar-success" cogoya = " bonya : 35 %; " ></div>
- <div kalasi = "bara bara-lasɔmini" cogoya = " bonya : 20 %; " ></div>
- <div kalasi = "bara bara-fara" cogoya = " bonya : 10 %; " ></div>
- </div> ye
Progress bars bɛ baara kɛ ni butɔni kelen dɔw ye ani lasɔmini kalanw walasa ka cogoyaw kɛ minnu bɛ bɛn ɲɔgɔn ma.
- <div class = "ɲɛtaa ɲɛtaa-kunnafoni" >
- <div kalasi = "bara" cogoya = " bonya : 20 % " ></div>
- </div> ye
- <div class = "ɲɛtaa ɲɛtaa-ɲɛtaa" >
- <div kalasi = "bara" cogoya = " bonya : 40 % " ></div>
- </div> ye
- <div class = "ɲɛtaa ɲɛtaa-lasɔmini" >
- <div kalasi = "bara" cogoya = " bonya : 60 % " ></div>
- </div> ye
- <div class = "ɲɛtaa ɲɛtaa-farati" >
- <div kalasi = "bara" cogoya = " bonya : 80 % " ></div>
- </div> ye
I n’a fɔ kulɛri jɛlenw, an ye ɲɛtaa barajuru sɛrɛkili caman sɔrɔ.
- <div class = "ɲɛtaa ɲɛtaa-kunnafoni ɲɛtaa-sira" >
- <div kalasi = "bara" cogoya = " bonya : 20 % " ></div>
- </div> ye
- <div class = "ɲɛtaa ɲɛtaa-ɲɛtaa ɲɛtaa-sira" >
- <div kalasi = "bara" cogoya = " bonya : 40 % " ></div>
- </div> ye
- <div class = "ɲɛtaa ɲɛtaa-lasɔmini ɲɛtaa-sira" >
- <div kalasi = "bara" cogoya = " bonya : 60 % " ></div>
- </div> ye
- <div class = "ɲɛtaa ɲɛtaa-farati ɲɛtaa-sira" >
- <div kalasi = "bara" cogoya = " bonya : 80 % " ></div>
- </div> ye
Progress bars bɛ baara kɛ ni CSS3 gradients, transitions ani animations ye walasa k’u nɔ bɛɛ sɔrɔ. O baarakɛminɛnw tɛ dɛmɛ sɔrɔ IE7-9 walima Firefox kɔrɔlenw kɔnɔ.
Version minnu tun ka kɔrɔ ni Internet Explorer 10 ani Opera 12 ye, olu tɛ animationw dɛmɛ.
Fɛnɲɛnɛma cogoya minnu bɛ kɛ ka fɛn suguya caman jɔ (i n’a fɔ bulɔgu fɔtaw, Tweetw, a ɲɔgɔnnaw) minnu bɛ ja dɔ jira min bɛ tali kɛ kinin fɛ walima kinin fɛ sɛbɛnni kɔnɔkow kɛrɛfɛ.
Media default bɛ sira Di ka media fɛn dɔ (jaw, wideyow, lamɛntaw) wuli ka taa kɔnɔkow bloki kinin fɛ walima kinin fɛ.
- <div kalasi = " kunnafonidilanw" >
- <a kalasi = "sama-nɛgɛjuru" href = "#" >
- <img kalasi = "mɛdiya-fɛn" data-src = "holder.js/64x64" >
- </a>
- <div kalasi = "kunnafoni-farikolo" >
- <h4 kalasi = " kunnafonidi-kunnafoni" > kunnafonidi-kunnafoni </h4>
- ...
- <!-- Nested media fɛn -->
- <div kalasi = " kunnafonidilanw" >
- ...
- </div> ye
- </div> ye
- </div> ye
Ni markup dɔ farala a kan, i bɛ se ka baara kɛ ni media inside list ye (nafa bɛ sɔrɔ commentaires threads walima articles lists la).
Cras sigilen amet nibh libero, ka gravida nulla. Nulla vel metus scelerisque ka sɔrɔ ka fɛnw ɲini. Cras purus odio, vestibulum min bɛ vulputate kɔnɔ, o ye tempus viverra turpis ye.
- <ul kalasi = "kunnafoni-sɛbɛn" >
- <li kalasi = "kunnafoni" >
- <a kalasi = "sama-nɛgɛjuru" href = "#" >
- <img kalasi = "mɛdiya-fɛn" data-src = "holder.js/64x64" >
- </a>
- <div kalasi = "kunnafoni-farikolo" >
- <h4 kalasi = " kunnafonidi-kunnafoni" > kunnafonidi-kunnafoni </h4>
- ...
- <!-- Nested media fɛn -->
- <div kalasi = " kunnafonidilanw" >
- ...
- </div> ye
- </div> ye
- </li>
- </ul>
Baara kɛ ni kɔlɔn ye i n’a fɔ nɔ nɔgɔman min bɛ kɛ fɛn dɔ kan walasa ka nɔ bila a la.
- <div kalasi = "kɛnɛ" >
- ...
- </div> ye
Kontrɔli padding ani rounded corners ni fila optionnel modifier classes.
- <div class = "kɛnɛ ɲuman-ba" >
- ...
- </div> ye
- <div class = "kɛnɛ koɲuman-misɛnnin" >
- ...
- </div> ye
Baara kɛ ni generic close icon ye walasa ka kunnafoniw bɔ kɛnɛ kan i n’a fɔ modals ani alerts.
- <butɔni kalasi = "dadon" > × </button> ye
iOS minɛnw bɛ ɲini ni href="#"
for click events ye n’i b’a fɛ ka baara kɛ ni anchor ye.
- <a kalasi = "dadon" href = "#" > &waatiw; </a>
Kalanso nɔgɔmanw, minnu sinsinnen bɛ jirali misɛnninw kan walima kɛwalew sɛgɛsɛgɛli kama.
Float dɔ element (fɛn dɔ) kinin fɛ
- kalasi = "sama-nɛgɛjuru".
- . sama - kinin fɛ { .
- flot : kinin fɛ ;
- } ye .
Float dɔ element kinin fɛ
- kalasi = "sama-niman" .
- . sama - kinin fɛ { .
- flot : kinin fɛ ;
- } ye .
Eleman dɔ ka kulɛri Changer ka kɛ#999
- kalasi = "muted" .
- . muted { .
- kulɛri : #999 ;
- } ye .
Clear the float
kan element o element
- kalasi = "kɛrɛnkɛrɛnnenya la".
- . ɲɛfɔli jɛlen { .
- * zoom : 1 ye ;
- &: ka kɔn , .
- &: kɔfɛ { .
- jirali : tabali ;
- kɔnɔkow : "" ;
- } ye .
- &: kɔfɛ { .
- jɛlen : u fila bɛɛ ;
- } ye .
- } ye .