Nneɛma a ɛwom

Nneɛma du du pii a wotumi de di dwuma bio a wɔasisi de ama akwantu, kɔkɔbɔ, popovers, ne nea ɛkeka ho.

Ti a ɛwɔ soro! Saa docs yi yɛ ma v2.3.2, a ɛnyɛ aban mmoa bio. Hwɛ Bootstrap no fã a aba foforo no!

Nhwɛso ahorow

Nneɛma atitiriw abien a wubetumi apaw, ne nsakrae pɔtee abien foforo.

Button biako kuw

Fa mu kyekyere bɔtn ahorow a ɛtoatoa so no .btnho .btn-group.

  1. <div adesuakuw = "btn-kuw" >
  2. <button class = "btn" > Benkum so </bɔtn>
  3. <button class = "btn" > Mfinimfini </button>
  4. <button class = "btn" > Nifa so </bɔtn>
  5. </div> no

Button akuw ahorow pii

Ka sets of <div class="btn-group">into a <div class="btn-toolbar">ma nneɛma a ɛyɛ den kɛse.

  1. <div adesuakuw = "btn-adwinnade" >
  2. <div adesuakuw = "btn-kuw" >
  3. ...
  4. </div> no
  5. </div> no

Akuw a ɛwɔ bɔtn a ɛda hɔ gyina hɔ

Ma bɔton ahorow bi nyɛ te sɛ nea wɔaboaboa ano tẽẽ sen sɛ ɛbɛda adi sɛ ɛbɛkɔ soro.

  1. <div class = "btn-kuw btn-kuw-gyina hɔ" >
  2. ...
  3. </div> no

Checkbox ne radio so nneɛma a ɛyɛ dɛ

Button akuw nso betumi ayɛ adwuma sɛ radio, baabi a button biako pɛ na ebetumi ayɛ adwuma, anaasɛ checkboxes, baabi a button dodow biara betumi ayɛ adwuma. Hwɛ JavaScript docs no ma ɛno.

Dropdowns wɔ button akuw ahorow mu

Ti a ɛwɔ soro!Ɛsɛ sɛ wɔkyekyere bɔton a ɛwɔ dropdowns no mmiako mmiako wɔ wɔn ankasa .btn-groupmu wɔ a mu na .btn-toolbarama wɔatumi akyerɛ ase yiye.

Nsɛm a wɔaka abom ne nhwɛso ahorow

Fa bɔtn biara di dwuma fa hyɛ menu a ɛwɔ ase no ase denam de a wode bɛto a mu .btn-groupna wode menu agyiraehyɛde a ɛfata ama no so.

  1. <div adesuakuw = "btn-kuw" >
  2. <a class = "btn a ɛkɔ fam-toggle" data-toggle = "a ɛba fam" href = "#" >
  3. Anamɔntuo
  4. <span adesuakuw = "caret" ></span>
  5. </a>
  6. <ul class = "nsɛm a ɛwɔ ase hɔ" >
  7. <!-- menu a ɛwɔ ase hɔ no link ahorow -->
  8. </ul>
  9. </div> no

Ɛyɛ adwuma wɔ button akɛse nyinaa ho

Button dropdowns yɛ adwuma wɔ kɛse biara mu: .btn-large, .btn-small, anaa .btn-mini.

Ɛhwehwɛ sɛ wɔde JavaScript di dwuma

Button dropdowns hwehwɛ sɛ Bootstrap dropdown plugin no atumi ayɛ adwuma.

Wɔ tebea horow bi mu—te sɛ mobile—dropdown menu ahorow no bɛtrɛw akɔ viewport no akyi. Ɛsɛ sɛ wode nsa anaasɛ wode JavaScript a wɔahyɛ da ayɛ no siesie alignment no.


Split button a ɛwɔ ase no

Sɛ yɛde button group styles ne markup no to hɔ a, ɛnyɛ den sɛ yebetumi ayɛ split button. Split buttons no kyerɛ adeyɛ a ɛyɛ gyinapɛn wɔ benkum so ne dropdown toggle wɔ nifa so a ɛwɔ contextual links.

  1. <div adesuakuw = "btn-kuw" >
  2. <button class = "btn" > Adeyɛ </button>
  3. <button class = "btn a ɛkɔ fam-toggle" data-toggle = "a ɛba fam" >
  4. <span adesuakuw = "caret" ></span>
  5. </button> no ho
  6. <ul class = "nsɛm a ɛwɔ ase hɔ" >
  7. <!-- menu a ɛwɔ ase hɔ no link ahorow -->
  8. </ul>
  9. </div> no

Nneɛma akɛse

Fa button class ahorow a ɛka ho no di dwuma .btn-mini, .btn-small, anaasɛ .btn-largefa sizing.

  1. <div adesuakuw = "btn-kuw" >
  2. <bɔtn adesuakuw = "btn btn-mini" > Adeyɛ </button>
  3. <button class = "btn btn-mini a ɛtwetwe-toggle" data-toggle = "a ɛba fam" >
  4. <span adesuakuw = "caret" ></span>
  5. </button> no ho
  6. <ul class = "nsɛm a ɛwɔ ase hɔ" >
  7. <!-- menu a ɛwɔ ase hɔ no link ahorow -->
  8. </ul>
  9. </div> no

Menu ahorow a wɔde gu fam

Wobetumi nso adan dropdown menu ahorow no afi ase akɔ soro denam adesuakuw biako a wode bɛka ɔwofo a ɔwɔ hɔ ntɛm ara no ho no so .dropdown-menu. Ɛbɛdannan akwankyerɛ a ɛwɔ no .caretna asan de menu no ankasa asi hɔ ma afi ase akɔ soro sen sɛ ɛbɛkɔ soro akɔ fam.

  1. <div class = "btn-kuo a ɛtɔ gu fam" >
  2. <button class = "btn" > Nsuo a ɛtɔ gu fam </button>
  3. <button class = "btn a ɛkɔ fam-toggle" data-toggle = "a ɛba fam" >
  4. <span adesuakuw = "caret" ></span>
  5. </button> no ho
  6. <ul class = "nsɛm a ɛwɔ ase hɔ" >
  7. <!-- menu a ɛwɔ ase hɔ no link ahorow -->
  8. </ul>
  9. </div> no

Nkratafa a wɔde di dwuma wɔ ɔkwan a ɛfata so

Simple pagination inspired by Rdio, eye ma apps ne nhwehwɛmu aba. Block kɛse no yɛ den sɛ wobɛpa ho kyɛw, ɛnyɛ den sɛ wobɛsesa, na ɛma mmeae akɛse a wobɛbɔ.

  1. <div adesuakuw = "kratafa" >
  2. <ul> no
  3. <li><a href = "#" > Nea edi kan </a></li>
  4. <li><a href = "#" > 1 </a></li> na ɛwɔ hɔ
  5. <li><a href = "#" > 2 </a></li> na ɛwɔ hɔ
  6. <li><a href = "#" > 3 </a></li> na ɛwɔ hɔ
  7. <li><a href = "#" > 4 ​​</a></li> na ɛwɔ hɔ
  8. <li><a href = "#" > 5 </a></li> na ɛwɔ hɔ
  9. <li><a href = "#" > Nea edi hɔ </a></li>
  10. </ul>
  11. </div> no

Nneɛma a wubetumi apaw

Asɛm a wɔadi dɛm ne nea ɛreyɛ adwuma

Links yɛ customizable ma tebea horow. Fa di dwuma .disabledma link ahorow a wuntumi klik so na .activekyerɛ kratafa a ɛwɔ hɔ mprempren no.

  1. <div adesuakuw = "kratafa" >
  2. <ul> no
  3. <li adesuakuw = "wɔadi dɛm" ><a href = "#" > « </a></li> na ɛwɔ hɔ
  4. <li adesuakuw = "adwumayɛ" ><a href = "#" > 1 </a></li>
  5. ...
  6. </ul>
  7. </div> no

Wubetumi apaw swap out active anaa disabled anchors ama spans de ayi click functionality bere a wokura styles a woabɔ wo tirim no.

  1. <div adesuakuw = "kratafa" >
  2. <ul> no
  3. <li adesuakuw = "wɔadi dɛm" ><span> « </span></li> na ɛwɔ hɔ
  4. <li adesuakuw = "adwumayɛ" ><span> 1 </span></li>
  5. ...
  6. </ul>
  7. </div> no

Nneɛma akɛse

Fancy kɛse anaa nketewa nkratafa? Fa .pagination-large, .pagination-small, anaa .pagination-minika ho sɛ wopɛ sɛ wunya akɛse afoforo a.

  1. <div class = "kratafa krataafa-kɛse" >
  2. <ul> no
  3. ...
  4. </ul>
  5. </div> no
  6. <div adesuakuw = "kratafa" >
  7. <ul> no
  8. ...
  9. </ul>
  10. </div> no
  11. <div class = "kratafa krataafa-ketewa" >
  12. <ul> no
  13. ...
  14. </ul>
  15. </div> no
  16. <div class = "kratafa krataafa-mini" >
  17. <ul> no
  18. ...
  19. </ul>
  20. </div> no

Nneɛma a Wɔde Di Dwuma

Fa adesua ahorow abien a wopɛ no mu biako ka ho na sesa nkratafa link ahorow no nhyehyɛe: .pagination-centeredne .pagination-right.

  1. <div class = "kratafa nkratafa-mfinimfini" >
  2. ...
  3. </div> no
  1. <div class = "kratafa krataafa-nifa" >
  2. ...
  3. </div> no

Pager a wɔde kyerɛw nsɛm

Ntɛmntɛm a edi kan ne nea edi hɔ links ma simple pagination implementations a hann markup ne styles. Ɛyɛ papa ma nsɛmma nhoma a ɛnyɛ den te sɛ blog anaa nsɛmma nhoma.

Default nhwɛso

Sɛnea wɔahyɛ no, pager no de link ahorow no si mfinimfini.

  1. <ul adesuakuw = "pager" >
  2. <li><a href = "#" > Nea atwam </a></li>
  3. <li><a href = "#" > Nea edi hɔ </a></li>
  4. </ul>

Link ahorow a wɔahyehyɛ no pɛpɛɛpɛ

Sɛnea ɛbɛyɛ a, wubetumi de link biara ahyia afã horow no:

  1. <ul adesuakuw = "pager" >
  2. <li adesuakuw = "a atwam" >
  3. <a href = "#" > Nsɛm a wɔka kyerɛ; Mpanyimfo </a>
  4. </li>
  5. <li adesuakuw = "nea edi hɔ" >
  6. <a href = "#" > Nsɛm foforo → </a>
  7. </li>
  8. </ul>

Optional disabled tebea

Pager links nso de general .disabledutility class a ɛfiri pagination no mu di dwuma.

  1. <ul adesuakuw = "pager" >
  2. <li class = "a wɔadi kan ayɛ adwuma" >
  3. <a href = "#" > Nsɛm a wɔka kyerɛ; Mpanyimfo </a>
  4. </li>
  5. ...
  6. </ul>

Nneɛma a wɔde kyerɛw nsɛm

Nneɛma a wɔde kyerɛw nsɛm Markup a wɔde hyɛ agyirae
Mfiaseɛ <span class="label">Default</span>
Nkunimdie <span class="label label-success">Success</span>
Kɔkɔbɔ <span class="label label-warning">Warning</span>
Ɛhia <span class="label label-important">Important</span>
Info <span class="label label-info">Info</span>
Inverse <span class="label label-inverse">Inverse</span>

Badge ahorow

Din Nhwɛsoɔ Markup a wɔde hyɛ agyirae
Mfiaseɛ 1. 1. <span class="badge">1</span>
Nkunimdie 2. 2. <span class="badge badge-success">2</span>
Kɔkɔbɔ 4. 4. <span class="badge badge-warning">4</span>
Ɛhia 6. 6 <span class="badge badge-important">6</span>
Info 8 <span class="badge badge-info">8</span>
Inverse 10. 10 <span class="badge badge-inverse">10</span>

Ɛnyɛ den sɛ ebetumi abubu

Sɛnea ɛbɛyɛ a ɛbɛyɛ mmerɛw sɛ wode bedi dwuma no, nkyerɛwde ne badge ahorow no bɛhwe ase kɛkɛ (ɛnam CSS no :emptypaw so) bere a nsɛm biara nni mu no.

Ɔkokodurufo unit

Ade a emu yɛ hare a ɛyɛ mmerɛw a wode bɛda nneɛma atitiriw adi wɔ wo wɛbsaet no so. Ɛyɛ adwuma yiye wɔ aguadi ne nsɛmma nhoma ahorow a emu nsɛm pii wom so.

Hello, wiase!

Eyi yɛ hero unit a ɛnyɛ den, jumbotron-style component a ɛnyɛ den a wɔde twe adwene si nneɛma anaa nsɛm a wɔada no adi so kɛse.

Sua pii

  1. <div adesuakuw = "ɔkokodurufo-kuw" >
  2. <h1> Asɛmti </h1>
  3. <p> Nsɛmfua a wɔde kyerɛw nsɛm </p>
  4. <p> na ɛwɔ hɔ
  5. <a class = "btn btn-mfitiaseɛ btn-kɛseɛ" >
  6. Sua pii
  7. </a>
  8. </p> no
  9. </div> no

Kratafa no asɛmti

Shell a ɛnyɛ den ma an h1to a ɛfata space out na segment afã horow a ɛwɔ kratafa bi so. Ɛbɛtumi de h1's default small, element no adi dwuma ne afã afoforo dodow no ara (a styles afoforo ka ho).

  1. <div class = "kratafa-atiri" >
  2. <h1> Nhwɛsoɔ krataafa asɛmti <small> Nsɛm ketewa ma atiri </small></h1>
  3. </div> no

Mfonini nketewa a wɔde ahyɛ hɔ

Sɛnea wɔahyɛ no, wɔayɛ Bootstrap mfonini nketewa no sɛnea ɛbɛyɛ a ɛbɛkyerɛ mfonini ahorow a ɛwɔ abusuabɔ a ɛwɔ agyiraehyɛde kakraa bi a ɛho hia.

Ɛyɛ nea wotumi sesa no kɛse

Sɛ wode markup kakra ka ho a, ɛyɛ yie sɛ wode HTML nsɛm biara te sɛ nsɛmti, nkyekyɛm, anaa bɔtɔn bɛka mfonini nketewa ho.

  • 300x200 na ɛyɛ

    Mfonini ketewaa bi a wɔde kyerɛw nsɛm

    Cras justo odio, dapibus a ɛyɛ mmerɛw wɔ, egestas eget quam. Donec id elit a ɛnyɛ mi porta gravida wɔ eget metus. Nullam id dolor id nibh ultricies kar a wɔde di dwuma wɔ ɔkwan a ɛfata so.

    Anamɔntuo Anamɔntuo

  • 300x200 na ɛyɛ

    Mfonini ketewaa bi a wɔde kyerɛw nsɛm

    Cras justo odio, dapibus a ɛyɛ mmerɛw wɔ, egestas eget quam. Donec id elit a ɛnyɛ mi porta gravida wɔ eget metus. Nullam id dolor id nibh ultricies kar a wɔde di dwuma wɔ ɔkwan a ɛfata so.

    Anamɔntuo Anamɔntuo

  • 300x200 na ɛyɛ

    Mfonini ketewaa bi a wɔde kyerɛw nsɛm

    Cras justo odio, dapibus a ɛyɛ mmerɛw wɔ, egestas eget quam. Donec id elit a ɛnyɛ mi porta gravida wɔ eget metus. Nullam id dolor id nibh ultricies kar a wɔde di dwuma wɔ ɔkwan a ɛfata so.

    Anamɔntuo Anamɔntuo

Dɛn nti na wode mfonini nketewa di dwuma

Mfonini nketewa (kan no na .media-gridɛkɔ soro kosi v1.4) yɛ papa ma mfonini anaa video ahorow a ɛwɔ grids, mfonini hwehwɛ aba, nneɛma a wɔtɔn wɔ sotɔɔ mu, portfolio ahorow, ne nea ɛkeka ho pii. Ebetumi ayɛ link ahorow anaasɛ static content.

Markup a ɛnyɛ den na ɛyɛ mmerɛw

Mfonini ketewaa a wɔde hyɛ agyirae no yɛ mmerɛw—a ula nneɛma dodow biara liwom no nkutoo ne nea ɛho hia. Ɛsan nso yɛ super flexible, ɛma kwan ma biribiara a ɛwɔ mu a ɛwɔ markup kakra bi kɛkɛ a ɛbɛkyekyere wo nsɛm no.

Ɔde grid column akɛse di dwuma

Nea etwa to no, mfonini nketewa no fã no de grid nhyehyɛe adesua ahorow a ɛwɔ hɔ dedaw no di dwuma—te sɛ .span2anaa .span3—ma mfonini nketewa no nsusuwii ahorow sohwɛ.

Markup a wɔde hyɛ agyirae

Sɛnea yɛadi kan aka no, agyiraehyɛde a wɔhwehwɛ ma mfonini nketewa no yɛ hare na ɛyɛ tẽẽ. Ɛha na wobɛhwɛ default nhyehyɛe a ɛwɔ mfonini ahorow a wɔde abɔ mu no :

  1. <ul class = "mfonini nketewa" >
  2. <li adesuakuw = "span4" >
  3. <a href = "#" adesuakuw = "mfonini ketewa" >
  4. <img data-src = "ɔkurafo.js/300x200" alt = "" > . Ɔde ne nsa kyerɛɛ ne so, na ɔde ne nsa kyerɛɛ ne so bio
  5. </a>
  6. </li>
  7. ...
  8. </ul>

Sɛ wopɛ HTML nsɛm a wɔahyɛ da ayɛ wɔ mfonini nketewa mu a, agyiraehyɛde no sesa kakra. Sɛ yɛbɛma block level content kwan wɔ baabiara a, yɛsesa no <a>ma <div>like so:

  1. <ul class = "mfonini nketewa" >
  2. <li adesuakuw = "span4" >
  3. <div class = "mfonini ketewa" >
  4. <img data-src = "ɔkurafo.js/300x200" alt = "" > . Ɔde ne nsa kyerɛɛ ne so, na ɔde ne nsa kyerɛɛ ne so bio
  5. <h3> Mfonini ketewa no nkyerɛwde </h3>
  6. <p> Mfonini ketewa no ase... </p>
  7. </div> no
  8. </li>
  9. ...
  10. </ul>

Nhwɛso pii

Hwehwɛ wo akwan nyinaa mu denam grid adesua ahorow a ɛwɔ hɔ ma wo no so. Wubetumi nso de akɛse ahorow afrafra na woayɛ no pɛpɛɛpɛ.

Default kɔkɔbɔ a wɔde ahyɛ mu

Fa nsɛm biara ne dismiss button a wopɛ no kyekyere mu na woanya .alertkɔkɔbɔ kɔkɔbɔ nkrasɛm titiriw bi.

Kɔkɔbɔ! Best check yo self, wo nnyɛ fɛ dodo.
  1. <div adesuakuw = "kɔkɔbɔ" >
  2. <button type = "button" class = "to" data-a wɔpow = "kɔbɔ" > × </button> no ho
  3. <strong> Kɔkɔbɔ! </strong> Best check yo self, wo nnyɛ fɛ dodo.
  4. </div> no

Dismiss button ahorow no

Mobile Safari ne Mobile Opera browser ahorow, a ɛka data-dismiss="alert"su no ho no, hwehwɛ sɛ href="#"wɔde kɔkɔbɔ ahorow a wɔpow bere a wɔde <a>tag redi dwuma no.

  1. <a href = "#" adesuakuw = "to" data-dismiss = "kɔbɔ" > × </a>

Sɛnea ɛbɛyɛ a, wubetumi de <button>element bi a ɛwɔ data attribute no adi dwuma, a yɛapaw sɛ yɛbɛyɛ ama yɛn docs no. Sɛ wode redi dwuma <button>a, ɛsɛ sɛ wode ka ho type="button"anaasɛ wo nkrataa no remfa mma.

  1. <button type = "button" class = "to" data-a wɔpow = "kɔbɔ" > × </button> no ho

Pow kɔkɔbɔ ahorow no denam JavaScript so

Fa kɔkɔbɔ jQuery plugin no di dwuma ma kɔkɔbɔ ahorow a wobɛpow ntɛmntɛm na ɛnyɛ den.


Nneɛma a wubetumi apaw

Sɛ wopɛ nkrasɛm tenten a, ma padding a ɛwɔ kɔkɔbɔ wrapper no atifi ne ase no nyɛ kɛse denam .alert-block.

Kɔkɔbɔ!

Best check yo self, wo nnyɛ fɛ dodo. Nulla vitae elit libero, a ɛyɛ aduru a wɔde di dwuma wɔ ɔkwan a ɛfata so. Praesent commodo cursus magna, vel scelerisque nisl consectetur ne nea wɔde di dwuma wɔ ɔkwan a ɛyɛ nwonwa so.

  1. <div class = "kɔkɔbɔ kɔkɔbɔ-asiw" >
  2. <button type = "button" class = "to" data-a wɔpow = "kɔbɔ" > × </button> no ho
  3. <h4> Kɔkɔbɔ! </h4> no
  4. Best check yo self, wo nnyɛ...
  5. </div> no

Nsɛm a ɛfa ho a wɔde besi ananmu

Fa adesua ahorow a wopɛ ka ho na sesa kɔkɔbɔ bi nkyerɛase.

Mfomso anaa asiane

Oh snap! Sesa nneɛma kakraa bi na bɔ mmɔden sɛ wode bɛmena bio.
  1. <div class = "kɔkɔbɔ kɔkɔbɔ-mfomso" >
  2. ...
  3. </div> no

Nkunimdie

Woayɛ adeɛ! Wokenkan kɔkɔbɔ nkrasɛm a ɛho hia yi yiye.
  1. <div class = "kɔkɔbɔ kɔkɔbɔ-nkonimdi" >
  2. ...
  3. </div> no

Asɛm

Ti a ɛwɔ soro! Saa kɔkɔbɔ yi hia w’adwene, nanso ɛnyɛ super important.
  1. <div class = "kɔkɔbɔ kɔkɔbɔ-nsɛm" >
  2. ...
  3. </div> no

Nhwɛso ne agyiraehyɛde

Mfiasesɛm

Default nkɔso bar a ɛwɔ vertical gradient.

  1. <div adesuakuw = "nkɔso" >
  2. <div adesuakuw = "bar" kwan = " ntrɛwmu : 60 %; " ></div>
  3. </div> no

Ntrɛwmu

Ɔde gradient di dwuma de yɛ striped effect. Ɛnyɛ nea ɛwɔ IE7-8 mu.

  1. <div class = "nkɔso nkɔso-striped" >
  2. <div adesuakuw = "bar" kwan = " ntrɛwmu : 20 %; " ></div>
  3. </div> no

Animated a wɔde yɛ nneɛma

Fa ka .activeho na .progress-stripedama nsensanee no ayɛ adwuma wɔ nifa so akɔ benkum so. Ɛnyɛ nea ɛwɔ IE no nkyerɛase ahorow nyinaa mu.

  1. <div class = "nkɔso nkɔso-striped active" >
  2. <div adesuakuw = "bar" kwan = " ntrɛwmu : 40 %; " ></div>
  3. </div> no

Wɔaboaboa ano

Fa nnua pii gu biako mu na .progressfa boaboa ano.

  1. <div adesuakuw = "nkɔso" >
  2. <div adesuakuw = "bar bar-nkonimdi" ɔkwan = " ntrɛwmu : 35 %; " ></div>
  3. <div class = "bar bar-kɔkɔbɔ" style = " trɛw : 20 %; " ></div>
  4. <div class = "bar bar-asiane" style = " ntrɛwmu : 10 %; " ></div>
  5. </div> no

Nneɛma a wubetumi apaw

Kɔla afoforo a wɔde ahyɛ mu

Nkɔso bars de button ne kɔkɔbɔ adesua koro no ara bi di dwuma ma style ahorow a ɛkɔ so daa.

  1. <div class = "nkɔso nkɔso-nsɛm" >
  2. <div adesuakuw = "bar" kwan = " ntrɛwmu : 20 % " ></div>
  3. </div> no
  4. <div class = "nkɔso nkɔso-nkonimdi" >
  5. <div adesuakuw = "bar" kwan = " ntrɛwmu : 40 % " ></div>
  6. </div> no
  7. <div class = "nkɔso nkɔso-kɔkɔbɔ" >
  8. <div adesuakuw = "bar" kwan = " ntrɛwmu : 60 % " ></div>
  9. </div> no
  10. <div class = "nkɔso nkɔso-asiane" >
  11. <div adesuakuw = "bar" kwan = " ntrɛwmu : 80 % " ></div>
  12. </div> no

Nnua a ɛwɔ nsensanee

Te sɛ kɔla ahorow a ɛyɛ den no, yɛwɔ nkɔso nnua ahorow a ɛyɛ nsensanee.

  1. <div class = "nkɔso nkɔso-nsɛm nkɔso-striped" >
  2. <div adesuakuw = "bar" kwan = " ntrɛwmu : 20 % " ></div>
  3. </div> no
  4. <div class = "nkɔso nkɔso-nkonimdi nkɔso-striped" >
  5. <div adesuakuw = "bar" kwan = " ntrɛwmu : 40 % " ></div>
  6. </div> no
  7. <div class = "nkɔso nkɔso-kɔkɔbɔ nkɔso-striped" >
  8. <div adesuakuw = "bar" kwan = " ntrɛwmu : 60 % " ></div>
  9. </div> no
  10. <div class = "nkɔso nkɔso-asiane nkɔso-striped" >
  11. <div adesuakuw = "bar" kwan = " ntrɛwmu : 80 % " ></div>
  12. </div> no

Browser mmoa a wɔde ma

Nkɔsoɔ bars de CSS3 gradients, nsakraeɛ, ne animations di dwuma de nya wɔn nsunsuansoɔ nyinaa. Saa nneɛma yi ntumi mmoa wɔ IE7-9 anaa Firefox dedaw no mu.

Nkyerɛase ahorow a edii kan sen Internet Explorer 10 ne Opera 12 no ntumi mmoa animations.

Abstract object styles a wɔde si nneɛma ahorow ahorow (te sɛ blog nsɛm, Tweets, ne nea ɛkeka ho) a ɛkyerɛ mfonini a ɛwɔ benkum anaa nifa a ɛka nsɛm a wɔakyerɛw ho.

Default nhwɛso

Media a wɔde ahyɛ hɔ no ma kwan ma wɔde media ade (mfonini, video, ɔdio) kɔ benkum anaa nifa so wɔ nsɛm a wɔabɔ no mu.

64x64 na ɛyɛ

Nsɛm ho amanneɛbɔfo asɛmti

Cras tena amet nibh libero, wɔ gravida nulla mu. Nulla vel metus scelerisque a wɔde di dwuma wɔ ɔkwan a ɛyɛ hu so. Cras purus odio, ahurututu a ɛwɔ ahurututu mu wɔ, tempus viverra turpis. Fusce condimentum nunc ac nisi akyi berɛmo a ɛyɛ mmerɛw. Donec lacinia congue felis a ɛwɔ faucibus mu.
64x64 na ɛyɛ

Nsɛm ho amanneɛbɔfo asɛmti

Cras tena amet nibh libero, wɔ gravida nulla mu. Nulla vel metus scelerisque a wɔde di dwuma wɔ ɔkwan a ɛyɛ hu so. Cras purus odio, ahurututu a ɛwɔ ahurututu mu wɔ, tempus viverra turpis. Fusce condimentum nunc ac nisi akyi berɛmo a ɛyɛ mmerɛw. Donec lacinia congue felis a ɛwɔ faucibus mu.
64x64 na ɛyɛ

Nsɛm ho amanneɛbɔfo asɛmti

Cras tena amet nibh libero, wɔ gravida nulla mu. Nulla vel metus scelerisque a wɔde di dwuma wɔ ɔkwan a ɛyɛ hu so. Cras purus odio, ahurututu a ɛwɔ ahurututu mu wɔ, tempus viverra turpis. Fusce condimentum nunc ac nisi akyi berɛmo a ɛyɛ mmerɛw. Donec lacinia congue felis a ɛwɔ faucibus mu.
  1. <div adesuakuw = "nsɛm ho amanneɛbɔ" >
  2. <a adesuakuw = "twe-benkum" href = "#" >
  3. <img adesuakuw = "media-ade" data-src = "kurafo.js/64x64" >
  4. </a>
  5. <div class = "nsɛm ho amanneɛbɔ-nipadua" >
  6. <h4 class = "media-asɛmti" > Nsɛm ho amanneɛbɔ asɛmti </h4>
  7. ...
  8.  
  9. <!-- Nested media ade -->
  10. <div adesuakuw = "nsɛm ho amanneɛbɔ" >
  11. ...
  12. </div> no
  13. </div> no
  14. </div> no

Nsɛm ho amanneɛbɔfo din

Sɛ wode markup kakra ka ho a, wubetumi de media adi dwuma wɔ list mu (ɛho wɔ mfaso ma comment threads anaa articles lists).

  • 64x64 na ɛyɛ

    Nsɛm ho amanneɛbɔfo asɛmti

    Cras tena amet nibh libero, wɔ gravida nulla mu. Nulla vel metus scelerisque a wɔde di dwuma wɔ ɔkwan a ɛyɛ hu so. Cras purus odio, ahurututu a ɛwɔ ahurututu mu wɔ, tempus viverra turpis.

    64x64 na ɛyɛ

    Nested media asɛmti

    Cras tena amet nibh libero, wɔ gravida nulla mu. Nulla vel metus scelerisque a wɔde di dwuma wɔ ɔkwan a ɛyɛ hu so. Cras purus odio, ahurututu a ɛwɔ ahurututu mu wɔ, tempus viverra turpis.
    64x64 na ɛyɛ

    Nested media asɛmti

    Cras tena amet nibh libero, wɔ gravida nulla mu. Nulla vel metus scelerisque a wɔde di dwuma wɔ ɔkwan a ɛyɛ hu so. Cras purus odio, ahurututu a ɛwɔ ahurututu mu wɔ, tempus viverra turpis.
    64x64 na ɛyɛ

    Nested media asɛmti

    Cras tena amet nibh libero, wɔ gravida nulla mu. Nulla vel metus scelerisque a wɔde di dwuma wɔ ɔkwan a ɛyɛ hu so. Cras purus odio, ahurututu a ɛwɔ ahurututu mu wɔ, tempus viverra turpis.
  • 64x64 na ɛyɛ

    Nsɛm ho amanneɛbɔfo asɛmti

    Cras tena amet nibh libero, wɔ gravida nulla mu. Nulla vel metus scelerisque a wɔde di dwuma wɔ ɔkwan a ɛyɛ hu so. Cras purus odio, ahurututu a ɛwɔ ahurututu mu wɔ, tempus viverra turpis.
  1. <ul class = "nsɛm ho amanneɛbɔ-nkyerɛwee" >
  2. <li adesuakuw = "nsɛm ho amanneɛbɔ" >
  3. <a adesuakuw = "twe-benkum" href = "#" >
  4. <img adesuakuw = "media-ade" data-src = "kurafo.js/64x64" >
  5. </a>
  6. <div class = "nsɛm ho amanneɛbɔ-nipadua" >
  7. <h4 class = "media-asɛmti" > Nsɛm ho amanneɛbɔ asɛmti </h4>
  8. ...
  9.  
  10. <!-- Nested media ade -->
  11. <div adesuakuw = "nsɛm ho amanneɛbɔ" >
  12. ...
  13. </div> no
  14. </div> no
  15. </li>
  16. </ul>

Wells

Fa abura no di dwuma sɛ nkɛntɛnso a ɛnyɛ den wɔ element bi so na ama no nsunsuanso a ɛwɔ mu.

Hwɛ, mewɔ abura bi mu!
  1. <div adesuakuw = "yiye" >
  2. ...
  3. </div> no

Adesua ahorow a wobetumi apaw

Control padding ne kurukuruwa ntwea so ne abien optional modifier adesuakuw.

Hwɛ, mewɔ abura bi mu!
  1. <div class = "wia yiye-kɛse" >
  2. ...
  3. </div> no
Hwɛ, mewɔ abura bi mu!
  1. <div class = "wiɛ yie-ketewa" >
  2. ...
  3. </div> no

To ahyɛnsode no mu

Fa generic close icon no di dwuma ma pow nsɛm te sɛ modals ne kɔkɔbɔ ahorow.

  1. <button class = "to mu" > &mmere; </button> no ho

iOS mfiri ahorow hwehwɛ sɛ wode href="#"for click events di dwuma sɛ wopɛ sɛ wode anchor di dwuma a.

  1. <a adesuakuw = "to" href = "#" > &mmere; </a>

Aboafo adesua ahorow

Simple, focused classes ma nketewa ɔyɛkyerɛ anaa suban tweaks.

.twe-benkum so

Float element bi benkum so

  1. class = "twe-benkum so".
  1. . twe - benkum { .
  2. float : benkum so ;
  3. } .

.twe-nifa

Float element bi nifa so

  1. class = "twe-nifa".
  1. . twe - nifa { .
  2. float : nifa so ;
  3. } .

.wɔayɛ mum

Sesa element bi kɔla kɔ#999

  1. class = "wɔayɛ mum".
  1. . muted { .
  2. kɔla : #999;
  3. } .

.siesie no yiye

Clear the floatwɔ element biara so

  1. class = "nsɛm a wɔasiesie".
  1. . clearfix { .
  2. * zoom : 1 na ɛyɛ ;
  3. &: ansa na , .
  4. &: akyi { .
  5. ɔyɛkyerɛ : pon ;
  6. emu nsɛm : "" ;
  7. } .
  8. &: akyi { .
  9. pefee : abien no nyinaa ;
  10. } .
  11. } .