Scaffolding sanfɛ, HTML fɛn jɔnjɔnw bɛ cogoya ani ka bonya ni kalansenw ye minnu bɛ se ka bonya walasa ka ɲɛda ni dusukunnata kura di, min bɛ kɛ cogo kelen na.
Sɛbɛnni jatebɔlan bɛɛ sinsinnen bɛ Less variables fila kan an ka variables.less file kɔnɔ: @baseFontSize
ani @baseLineHeight
. Fɔlɔ ye basigi sɛbɛnnibolo-size ye min bɛ Kɛ a bɛɛ la ani filanan ye basigi-yɔrɔ-janya ye.
An bɛ baara Kɛ n’o fɛn caman sɛgɛsɛgɛli ye, ani jatebɔ dɔw, walasa ka an ka suguya bɛɛ ka margins, paddings, ani line-heights (dakunw) Dabɔ ani fɛn wɛrɛw.
Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus ni magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies bolifɛnw.
Aw ye dakun dɔ kɛ fɛn ye min bɛ bɔ kɛnɛ kan ni aw ye a fara a kan .lead
.
Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor ye fɛn ye min bɛ se ka kɛ fɛn ye min bɛ se ka kɛ fɛn ye. Duis mollis, est min tɛ fɛn caman ye.
Fɛn | Baarakɛcogo | Wajibi tɛ |
---|---|---|
<strong> |
Walasa ka sinsin sɛbɛn yɔrɔ dɔ kan ni nafama ye | Foɲisi |
<em> |
Walasa ka sinsin sɛbɛn yɔrɔ dɔ kan ni degun ye | Foɲisi |
<abbr> |
A bɛ daɲɛ surunw ni daɲɛ surunw siri walasa ka a ɲɛfɔcogo ɲɛfɔlen jira hover kan | A’ ye fɛn dɔ fara a kan min bɛ se ka sugandi .initialism kalasi ye walasa ka sɛbɛnnibolow surunya. |
<address> |
Walasa ka kunnafoni sɔrɔ a bɛnbakɛ min ka surun a la walima baara bɛɛ lajɛlen na | Aw bɛ sɛbɛnniw mara ni zana bɛɛ laban ye ni<br> |
Fusce dapibus , tellus ac cursus commodo , tortor mauris condimentum nibh , ut fermentum massa justo sigi amet risus. Maecenas faucibus mollis ye jiri ye min bɛ wele ko mollis interdum. Nulla vitae elit libero, o ye fura ye min bɛ wele ko pharetra augue.
Kɔlɔsili: Aw kana siga ka baara kɛ <b>
ni <i>
HTML5 ye, nka u baarakɛcogo Changé dɔɔnin. <b>
kɔrɔ ye ka daɲɛw walima kumasenw Bɔ kɛnɛ kan k’a sɔrɔ a ma nafa wɛrɛ Lase k’a sɔrɔ <i>
a fanba bɛ kumakan, fɛɛrɛko daɲɛw, a ɲɔgɔnnaw de kan.
<address>
Tag bɛ se ka baara kɛ cogo min na, o misali fila filɛ nin ye :
Suguda minnu bɛ ni fɛn dɔ ye title
, olu bɛ ni duguma dan ye min bɛ yeelen bɔ ani dɛmɛ taamasiyɛn bɛ u kan. O bɛ baarakɛlaw Di taamaʃyɛn wɛrɛ ma fɛn dɔ bɛna Jira hover kan.
Aw bɛ initialism
kalansen fara daɲɛ surun dɔ kan walasa ka dɔ fara sɛbɛnnikɛcogo kan ni sɛbɛnni hakɛ dɔ di a ma min ka dɔgɔ dɔɔnin.
HTML ye fɛn bɛɛ la ɲuman ye kabini buru tigɛlen.
Daɲɛ min bɛ wele ko attribut , o surunyalen ye attr ye .
Fɛn | Baarakɛcogo | Wajibi tɛ |
---|---|---|
<blockquote> |
Block-level element min bɛ kɛ ka kɔnɔkow fɔ ka bɔ sɔrɔyɔrɔ wɛrɛ la | A ka fɛn dɔ fara a kan .pull-left ni .pull-right kalanw ye ka ɲɛsin sugandiliw ma minnu bɛ wuli |
<small> |
Fɛn min bɛ se ka kɛ walasa ka citation dɔ fara a kan min ɲɛsinnen bɛ baarakɛla ma, a ka c’a la, sɛbɛnnikɛla min bɛ ni baara tɔgɔ ye | Aw bɛ a <cite> lamini title walima a tɔgɔ bɔyɔrɔ la |
Walasa ka blockquote dɔ don a kɔnɔ, i ka HTML o HTML<blockquote>
lamini i n’a fɔ quote. Walasa ka kuma tilennenw sɔrɔ an bɛ ladilikan di a ma .<p>
A bɛ fɛn dɔ Dòn a la min bɛ Se <small>
ka Kɛ k'i ka source cite ani i bɛ em dash —
Sɔrɔ a ɲɛfɛ ka Kɛɲɛ ni styling (fɔcogo) ye.
- <blockquote> ye
- <p> Lorem ipsum dolor sigilen amet, consectetur adipiscing elit. Jateden dafalen posuere erat ye ante venenatis ye. </p> , o ye
- <misɛn> mɔgɔ tɔgɔba dɔ </small>
- </blockquote> ye
Blockquotes dafalenw bɛ cogoya min na:
Lorem ipsum dolor sigilen amet, consectetur adipiscing elit. Jateden dafalen posuere erat ye ante venenatis ye.
Mɔgɔ min tɔgɔ bɔra Body of work la
Walasa ka i ka blockquote flot ka taa kinin fɛ, i ka fara a kan class="pull-right"
:
Lorem ipsum dolor sigilen amet, consectetur adipiscing elit. Jateden dafalen posuere erat ye ante venenatis ye.
Mɔgɔ min tɔgɔ bɔra Body of work la
<ul>
<ul class="unstyled">
<ol>
<dl>
<dl class="dl-horizontal">
Kungolow bɛ wuli! ɲɛfɔli lisi tilennenw bɛna daɲɛw tigɛ minnu janya ka bon kosɛbɛ fo u tɛ se ka don kininbolo koloma labɛnni text-overflow
na . Viewports fitininw na, u bɛna fɛn caman Changer ka kɛ default stacked layout ye.
Kode inline snippets siri ni <code>
.
- misali la , < kode> dakun </ kode > ka kan ka siri i n' a fɔ inline .
Baara kɛ ni <pre>
kode sinsinni caman ye. Aw ye aw jija ka bɔ angle brackets (kɛrɛfɛlan) fɛn o fɛn na kode kɔnɔ walasa ka ɲɛfɔli kɛ ka ɲɛ.
<p>Sɛbɛn misali yan...</p>
- <pre> ye
- <p>Sɛbɛn misali yan...</p>
- </pre> , o ye
Kɔlɔsili: Aw ye aw jija ka kode mara <pre>
tags kɔnɔ ka surunya kinin fɛ cogo min na; a bɛna tablo bɛɛ jira.
Aw bɛ se ka .pre-scrollable
kalasi fara a kan min bɛna max-height sigi 350px ani ka y-axis scrollbar di.
Aw bɛ o <pre>
fɛn kelen in ta ka kalasi fila fara a kan minnu bɛ se ka sugandi walasa ka ɲɛfɔli kɛcogo ɲɛ.
- <p> misali sɛbɛn yan... </p>
- <pre class = "sɛbɛn ɲɛnama."
- layiniw" >
- <p>Sɛbɛn misali yan...</p>
- </pre> , o ye
google-code-prettify telesarse ani ka readme lajɛ walasa ka baara kɛ ni a ye.
Ka nɔrɔ | Cogojirali |
---|---|
<table> |
Wrapping element walasa ka kunnafoniw jira tabali cogo la |
<thead> |
Minɛn kɔnɔfɛn min bɛ kɛ tabali kuncɛlanw ( <tr> ) ye walasa ka tabali kuluw labeli |
<tbody> |
Minɛn yɔrɔ min bɛ tabali jiriw la ( <tr> ) tabali farikolo la |
<tr> |
Minɛn kɔnɔfɛn min bɛ kɛ tabali selilɛriw kulu dɔ ye ( <td> walima <th> ) min bɛ jira jirisun kelen kan |
<td> |
Tabali selilɛri default |
<th> |
Tabali seli kɛrɛnkɛrɛnnen ka ɲɛsin koloma (walima jirisun, ka kɛɲɛ ni a bonya ni a bilali ye) labeliw kama Wajibi don ka baara kɛ ni a kɔnɔ <thead> |
<caption> |
Tabali bɛ min mara, o ɲɛfɔli walima a kuncɛcogo, kɛrɛnkɛrɛnnenya la, min nafa ka bon ɛkran kalanbagaw ma |
- <tabali> ye
- <kunkolo>
- <tr> ye
- <th> ... </th> ye
- <th> ... </th> ye
- </tr> , o ye
- </thead> ye
- <tbody> ye
- <tr> ye
- <td> ... </td> ye
- <td> ... </td> ye
- </tr> , o ye
- </tbody> ye
- </tabali>
Tɔ̀gɔ | Kilasi | Cogojirali |
---|---|---|
Fɔlɔ | Foɲisi | Sitiliw tɛ, kuluw ni jirisunw dɔrɔn de don |
Kunfɔlɔ | .table |
Layini tilennenw dɔrɔn de bɛ jiriw ni ɲɔgɔn cɛ |
Dankan bɛ a la | .table-bordered |
A bɛ nkɔni lamini ani ka kɛnɛma dan fara a kan |
Zebra-sɛrɛkili | .table-striped |
A bɛ kɔkanna kulɛri jɛman fara jirisun gansanw kan (1, 3, 5, wdfl) . |
A bɛ fɔ ka surunya | .table-condensed |
A bɛ padding vertical tigɛ tilayɔrɔ la, ka bɔ 8px la ka se 4px ma, bɛɛ td ni th elements kɔnɔ |
Tabali bɛ kɛ cogo la min bɛ kɛ u yɛrɛma ni dan damadɔ dɔrɔn ye walasa ka kalan sɔrɔ ani ka sigicogo mara. Ni 2.0 ye, .table
kalan bɛ ɲini.
- <tabali kalasi = "tabali" >
- ...
- </tabali>
# Bamako . | Tɔgɔ | Jamu | Baarakɛla tɔgɔ |
---|---|---|---|
1 ye | Marka | Otto ye | @mdo ye |
2 ye | Yakuba | Thornton ye | @belebeleba |
3 ye | Larry ye | Kɔnɔ in | @twitter kan |
Aw ye fansi dɔɔnin sɔrɔ ni aw ka tabali ye ni zebra-striping farali ye—aw ye .table-striped
kalan fara dɔrɔn.
Kɔlɔsili: Tabali sɛrɛkiliw bɛ baara kɛ ni :nth-child
CSS sugandilan ye wa a tɛ sɔrɔ IE7-IE8 kɔnɔ.
- <tabali kalasi = "tabali-tabali-sira" >
- ...
- </tabali>
# Bamako . | Tɔgɔ | Jamu | Baarakɛla tɔgɔ |
---|---|---|---|
1 ye | Marka | Otto ye | @mdo ye |
2 ye | Yakuba | Thornton ye | @belebeleba |
3 ye | Larry ye | Kɔnɔ in | @twitter kan |
Aw bɛ danw fara tabali bɛɛ lamini na ani nkɔni bulamaw walasa ka ɲɛnajɛ kɛ.
- <tabali kalasi = "tabali-tabali-danfara" >
- ...
- </tabali>
# Bamako . | Tɔgɔ | Jamu | Baarakɛla tɔgɔ |
---|---|---|---|
1 ye | Marka | Otto ye | @mdo ye |
Marka | Otto ye | @getbootstrap ye | |
2 ye | Yakuba | Thornton ye | @belebeleba |
3 ye | Larry ka Kɔnɔ | @twitter kan |
Aw ye aw ka tabali kɛ fɛn ye min ka surun ni kalan farali ye .table-condensed
walasa ka tabali selilɛri padding tigɛ tilayɔrɔ fila la (ka bɔ 8px la ka se 4px ma).
- <tabali kalasi = "tabali-tabali-kɔnɔna" >
- ...
- </tabali>
# Bamako . | Tɔgɔ | Jamu | Baarakɛla tɔgɔ |
---|---|---|---|
1 ye | Marka | Otto ye | @mdo ye |
2 ye | Yakuba | Thornton ye | @belebeleba |
3 ye | Larry ka Kɔnɔ | @twitter kan |
Aw kana siga ka tabali kalansenw dɔ fara ɲɔgɔn kan walasa ka ɲɛda cogoya wɛrɛw sɔrɔ ni aw bɛ baara kɛ ni kalansenw dɔ ye minnu bɛ sɔrɔ.
- <tabali kalasi = "tabali-tabali-sira-tabali-dakun-tabali-konden" >
- ...
- </tabali>
Tɔgɔ dafalen | |||
---|---|---|---|
# Bamako . | Tɔgɔ | Jamu | Baarakɛla tɔgɔ |
1 ye | Marka | Otto ye | @mdo ye |
2 ye | Yakuba | Thornton ye | @belebeleba |
3 ye | Larry ka Kɔnɔ | @twitter kan |
A yɔrɔ min ka fisa ni foroko ye Bootstrap kɔnɔ o ye ko i ka dontaw ni i ka kɔrɔsili bɛɛ ɲɛ ka ɲi hali n’i y’u jɔ cogo o cogo i ka markup kɔnɔ. HTML nafama si tɛ wajibiya, nka an bɛ misaliw Di minnu b’a Лini.
Layidu talenw minnu ka gɛlɛn kosɛbɛ, olu bɛ na ni kalan surunw ye minnu bɛ se ka sɛgɛsɛgɛ walasa ka cogoya nɔgɔya ani ka ko kɛlenw siri, o la i bɛ datugu senfɛ-senfɛ.
Bootstrap bɛ na ni dɛmɛ ye foroko labɛncogo suguya naani na:
Forobaciyɛn labɛncogo suguya wɛrɛw bɛ fɛn dɔw de wajibiya ka fɛn dɔw Changer markup, nka controls yɛrɛ bɛ to ani u bɛ kɛ cogo kelen na.
Bootstrap ka sɛbɛnw kɔnɔ, cogoyaw bɛ sɔrɔ foroko basigilenw bɛɛ lajɛlen na i n’a fɔ input, textarea, ani select i bɛna min makɔnɔ. Nka a fana bɛ na ni ladamu-yɔrɔ damadɔ ye i n’a fɔ donna-sɛbɛnw faralen ɲɔgɔn kan ani donta-sɛbɛnni-sɛbɛnw ani dɛmɛni ka ɲɛsin jatebɔ-sɛbɛnw lisɛli ma.
Jamana minnu bɛ i n’a fɔ fili, lasɔmini, ani ɲɛtaa, olu bɛ sɔrɔ sɛbɛnfura kunkanko suguya kelen-kelen bɛɛ la. O fana bɛ sɔrɔ cogoyaw la minnu bɛ kɛ ka ɲɛsin bololabaarakɛlaw ka kɔrɔsili ma.
Bootstrap bɛ taamasiyɛn nɔgɔmanw ni cogoyaw di ɛntɛrinɛti sɛbɛnw cogoya naani ma minnu bɛ sɔrɔ mɔgɔw fɛ.
Tɔ̀gɔ | Kilasi | Cogojirali |
---|---|---|
Vertical (dafalen) . | .form-vertical (a tɛ wajibiya) |
Labeli minnu bɛ ɲɔgɔn kan, minnu bɛ ɲɔgɔn kan numan fɛ, olu bɛ kɔrɔsilenw kan |
Inline kɔnɔ | .form-inline |
Label min bɛ kinin fɛ ani inline-block controls walasa ka cogoya compact |
Ɲini | .form-search |
Extra-rounded text input ka ɲɛsin ɲinini cɛɲi danma ma |
Dalen | .form-horizontal |
Aw bɛ labeli minnu bɛ kinin fɛ, minnu bɛ kinin fɛ, olu pan layini kelen kan ni kunnafonidilanw ye |
Smart ani lightweight defaults ni markup wɛrɛ tɛ.
- <form class = "kɛnɛ" >
- <label> Labeli tɔgɔ </label>
- <donna suguya = "sɛbɛn" kalasi = "span3" yɔrɔ = "Fɛn dɔ sɛbɛn..." >
- <span class = "dɛmɛ-blɔki" > Misali bloki-dakun dɛmɛ sɛbɛn yan. </span> , o ye
- <label class = "sɛbɛn ɲɛ 10nan" >
- <input type = "checkbox" > Aw ye n lajɛ
- </label> ye
- <butɔni suguya = "ci" kalasi = "btn" > Lase </button>
- </form>
Aw bɛ fara .form-search
sɛbɛnfura kan ani .search-query
ka fara a kan input
.
- <form class = "kɛnɛ foroko-ɲini" >
- <donna suguya = "sɛbɛn" kalasi = "donna-minɛn ɲinini-ɲininkali" >
- <butɔni suguya = "submit" kalasi = "btn" > Ɲini </button>
- </form>
A fara a kan .form-inline
ka finesse vertical alignment ani spacing of form controls.
- <form class = "kɛnɛ foroko-inline" >
- <donna suguya = "sɛbɛn" kalasi = "donna-misɛnnin" yɔrɔ = "Email" >
- <donna suguya = "daɲɛ" kalasi = "donna-misɛn" yɔrɔ = "Daɲɛ" >
- <label class = "sɛbɛn ɲɛ 10nan" >
- <input type = "checkbox" > Aw ye aw hakili to ne la
- </label> ye
- <butɔni suguya = "submit" kalasi = "btn" > Don </button>
- </form>
An bɛ dɛmɛn minnu na, olu bɛɛ jiralen bɛ kinin fɛ. Nin ye bullet list ye:
Ni an ye misali foroko labɛncogo min bɛ sanfɛ, o ye taamasiyɛn ye min bɛ tali kɛ donta ni kɔrɔsili kulu fɔlɔ la. , .control-group
, .control-label
ani .controls
kalanw bɛɛ wajibiyalen don ka ɲɛsin styling ma.
- <form class = "fɔcogo-kɔrɔlen" >
- <forobaciyɛn>
- <legend> nsiirin sɛbɛn </legend>
- <div kalasi = "kunnafoni-kulu" >
- <label class = "control-label" for = "donni01" > Sɛbɛnni doncogo </label>
- <div kalasi = "kunnafoni" >
- <donna suguya = "sɛbɛn" kalasi = "donna-xlarge" id = "donna01" >
- <p class = "dɛmɛ-blɔki" > Dɛmɛ sɛbɛn dɛmɛni </p>
- </div> ye
- </div> ye
- </fieldset> ye
- </form>
Bootstrap bɛ cogoyaw jira ka ɲɛsin browser-supported focused ani disabled
states ma. An bɛ Webkit default bɔ yen ka outline
a box-shadow
kɛ a nɔ na :focus
.
A fana bɛ filiw, lasɔminiw ani ɲɛtaa tiɲɛni cogoyaw jira. Walasa ka baara kɛ ni a ye, aw bɛ fili kalasi fara a lamini .control-group
kan .
- <forobaciyɛn
- class = "kunnafoni-kulu fili" >
- ...
- </fieldset> ye
Donan kuluw—ni sɛbɛnniw faralen don ɲɔgɔn kan walima minnu bɛ sɛbɛn ka kɔn o ɲɛ—o bɛ fɛɛrɛ nɔgɔman di walasa ka kunnafoni caman di i ka dontaw ma. Misalibaw ye @ taamasiyɛn ye Twitter tɔgɔw la walima $ ye wariko la.
Fɔ ka se v1.4 ma, Bootstrap tun bɛ taamasiyɛn wɛrɛw wajibiya ka jatebɔ kɛyɔrɔw ni arajow lamini walasa k’u fara ɲɔgɔn kan. Sisan, a ye ko nɔgɔman ye ka segin a kan <label class="checkbox">
min bɛ <input type="checkbox">
.
Inline checkboxes ani arajow fana bɛ dɛmɛ. Dɔrɔn ka fara .inline
a kan .checkbox
walima .radio
ani i bɛ ban.
Walasa ka baara kɛ ni prepend walima append inputs ye inline form kɔnɔ, aw ye aw jija ka .add-on
ani input
bila layini kelen kan, yɔrɔ tɛ minnu na.
Walasa ka dɛmɛ sɛbɛn fara i ka foroko dontaw kan, i ka dɛmɛ sɛbɛn inline ni <span class="help-inline">
walima dɛmɛ sɛbɛnni bloki ni <p class="help-block">
donta yɔrɔ kɔfɛ.
Sanni an ka taamasiyɛn bɛɛ kɛ ɲinini wɛrɛ ye, an y’u lajɛ ka kɛ sprite ye—ja kulu dɔ bɛ dosiye kelen kɔnɔ min bɛ baara kɛ ni CSS ye walasa ka jaw bila yɔrɔ la ni background-position
. Nin ye fɛɛrɛ kelen ye an bɛ baara kɛ ni min ye Twitter.com kan wa a ye baara kɛ an ye kosɛbɛ.
Icons classes bɛɛ bɛ daminɛ ni tɔgɔw ni ɲɔgɔn cɛ .icon-
ka ɲɛ ani scoping, i n’a fɔ an ka yɔrɔ tɔw. O bɛna dɛmɛ ka bɛnbaliya bali ni baarakɛminɛn wɛrɛw ye.
Glyphicons ye sira Di an ma baara Kɛ ni Halflings sigilenw ye an ka baarakɛminɛn dafalenw kɔnɔ fo n’an ye jὲɲɔgɔnya ni krediti Di yan docs kɔnɔ. Aw ye aw jija ka o ɲɔgɔn kɛ aw ka porozew la.
Bootstrap bɛ baara Kɛ ni <i>
tag ye ikomi bɛɛ kama, nka u tɛ ni case class ye—prefix jɛlen dɔrɔn. Walasa ka baara kɛ ni nin kode in ye, aw bɛ nin kode in bila yɔrɔ o yɔrɔ la:
- <i kalasi = " taamasiyɛn-ɲini" </i>
Fɛɛrɛw fana bɛ yen minnu bɛ sɔrɔ taamasiyɛn inversé (nɛrɛma) kama, minnu labɛnna ni kalasi kelen wɛrɛ ye:
- <i kalasi = " taamasiyɛn-ɲini taamasiyɛn-finman" </i>
Kalanso 140 bɛ yen i bɛ se ka minnu sugandi i ka taamasiyɛnw kama. Dɔrɔn ka <i>
tag dɔ fara a kan ni kalasi ɲumanw ye ani i bɛ sigi. Aw bɛ se ka lisi dafalen sɔrɔ sprites.less kɔnɔ walima yan yɛrɛ nin sɛbɛn in kɔnɔ.
Kungolow bɛ wuli! Ni aw bɛ baara kɛ ni sɛbɛnniw sɛrɛw kɛrɛfɛ, i n’a fɔ butɔni walima nav jɛgɛnsira la, aw ye aw jija ka yɔrɔ dɔ to <i>
taamasiyɛn kɔfɛ walasa ka yɔrɔ janya ka ɲɛ.
Ikoniw ka bon, nka mɔgɔ bɛ se ka baara kɛ n’u ye min? Hakilina damadɔw filɛ nin ye:
A jɔyɔrɔba ye, i bɛ se ka taamasiyɛn bila yɔrɔ o yɔrɔ <i>
, i bɛ se ka taamasiyɛn dɔ bila.
Baara kɛ n’u ye butɔni kɔnɔ, butɔni kuluw kɔnɔ baarakɛminɛn dɔ kama, navigatiɔn, walima foroko dontaw la minnu bilalen bɛ ka kɔn.