Yakakosha HTML zvinhu zvakashongedzwa uye zvakagadziridzwa nemakirasi akawedzera.
Yese misoro yeHTML, <h1>
kuburikidza <h6>
iripo.
Bootstrap's global default font-size
ndeye 14px , ine line-height
ye20px . Izvi zvinoshandiswa kune <body>
uye ndima dzese. Uye zvakare, <p>
(ndima) inogamuchira yepasi muganho wehafu yavo mutsara-urefu (10px nekusarudzika).
Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.
Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec ullamcorper nulla non metus auctor fringilla. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec ullamcorper nulla non metus auctor fringilla.
Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.
<p> ... </p>
Ita kuti ndima ibude pachena nekuwedzera .lead
.
Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.
<p class = "lead" > ... </p>
Chikero chetaipa chinobva pazvikamu zviviri ZVINOTAURWA mune zvinoshanduka.zvishoma : @baseFontSize
uye @baseLineHeight
. Yekutanga ndiyo base font-saizi inoshandiswa mukati mese uye yechipiri ndiyo base mutsetse-urefu. Isu tinoshandisa iwo akasiyana uye mamwe masvomhu akareruka kugadzira miganho, padding, uye mutsara-urefu hwemhando yedu yese nezvimwe. Gadzirisa ivo uye Bootstrap inogadzirisa.
Shandisa HTML's default emphasis tag ane huremu zvitaera.
<small>
Kuti usasimbise mukati kana mabhuroko ezvinyorwa, shandisa diki tag.
Mutsara wechinyorwa uyu unoitirwa kubatwa sechinyorwa chakanaka.
<p> <small> Uyu mutsara wemavara unoitirwa kubatwa seakadhindwa zvakanaka. </ diki> </ p>
Zvekusimbisa chidimbu chemavara ane huremu hwefonti-huremu.
Chidimbu chinotevera chemavara chinoshandurwa semavara matema .
<strong> yakashandurwa semavara matema </strong>
Zvekusimbisa chidimbu chemavara nemavara akatsveyama.
Chidimbu chinotevera chemavara chinoshandurwa semavara akatsveyamiswa .
<em> yakanyorwa semavara akatsveyamiswa </em>
Musoro!Inzwa wakasununguka kushandisa <b>
uye <i>
muHTML5. <b>
inoitirwa kuratidza mazwi kana mitsara pasina kuendesa kukosha kwekuwedzera asi <i>
kazhinji iri yezwi, tekinoroji mazwi, nezvimwe.
Gadzirisa zvinyorwa kune zvikamu zvine makirasi ekugadzirisa zvinyorwa.
Mashoko akarocherwa kuruboshwe.
Mavara akarongedzerwa nepakati.
Mavara anoenderana nekurudyi.
- <p class = "text-left" > Mavara anoenderana nekuruboshwe. </ p>
- <p class = "text-center" > Mavara anoenderana nepakati. </ p>
- <p kirasi = "mavara-kurudyi" > Mavara anoenderana nekurudyi. </ p>
Taurira zvinorehwa kuburikidza neruvara uine mashoma emakirasi ekusimbisa ekushandisa.
Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.
Etiam porta sem malesuada magna mollis euismod.
Donec ullamcorper nulla non metus auctor fringilla.
Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis.
Duis mollis, est non commodo luctus, nisi erat porttitor ligula.
- <p class = "muted" > Fusce dapibus, tellus ac cursus commodo, tor mauris nibh. </ p>
- <p class = "text-warning" > Etiam porta sem malesuada magna mollis euismod. </ p>
- <p class = "text-error" > Donec ullamcorper nulla non metus auctor fringilla. </ p>
- <p class = "text-info" > Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis. </ p>
- <p class = "text-success" > Duis mollis, est non commodo luctus, nisi erat porttitor ligula. </ p>
Kuitwa kwakamisikidzwa kweHTML's <abbr>
element yekupfupisa uye acronyms kuratidza yakawedzera vhezheni pane hover. Madimburiko ane title
hunhu ane mwenje wepasi pebhodha uye yekubatsira cursor pane hover, ichipa mamwe mamiriro pane hover.
<abbr>
Kuti uwane mavara akawedzerwa pahovha refu yechidimbu, sanganisira title
hunhu.
Muchidimbu chezwi rokuti attr .
<abbr title = "attribute" > attr </abbr>
<abbr class="initialism">
Wedzera .initialism
kuchidimbu chemavara madiki zvishoma.
HTML ndicho chinhu chakanakisa kubva pachingwa chakachekwa.
<abbr title = "HyperText Markup Language" class = "initialism" > HTML </abbr>
Ipa ruzivo rwekufonera kumadzitateguru ari pedyo kana boka rose rebasa.
<address>
Chengetedza fomati nekugumisa mitsetse yese ne <br>
.
- <address>
- <strong> Twitter, Inc. </strong><br>
- 795 Folsom Ave, Suite 600 <br>
- San Francisco, CA 94107 <br>
- <abbr title = "Phone" > P: </abbr> (123) 456-7890
- </ address>
- <address>
- <strong> Zita Rakazara </strong><br>
- <a href = "mailto:#" > [email protected] </a>
- </ address>
Zvekutora zvivharo zvemukati kubva kune imwe sosi mukati megwaro rako.
Putira <blockquote>
kutenderedza chero HTML se quote. Kuti uwane mazwi akatwasuka tinokurudzira a <p>
.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat ante.
- <blockquote>
- <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat ante. </ p>
- </blockquote>
Chimiro uye zvemukati zvinoshanduka kune nyore kusiyanisa pane yakajairwa blockquote.
Wedzera <small>
tag yekuziva kwakabva. Peta zita rekwakabva basa mu <cite>
.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat ante.
Mumwe ane mukurumbira muna Source Title
- <blockquote>
- <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat ante. </ p>
- <small> Mumwe munhu ane mukurumbira <cite title = "Source Title" > Source Title </cite></small>
- </blockquote>
Shandisa .pull-right
kune yakayangarara, yakanangana-kurudyi blockquote.
- <blockquote kirasi = "dhonza-kurudyi" >
- ...
- </blockquote>
Rondedzero yezvinhu umo kurongeka kusina basa zvakajeka.
- <ul>
- <li> ... </li>
- </ul>
Rondedzero yezvinhu umo kurongeka kunokosha zvakajeka.
- <ol>
- <li> ... </li>
- </ol>
Bvisa iyo yakasarudzika list-style
uye yekusiya padding pane rondedzero zvinhu (pakarepo vana chete).
- <ul class = "isina kunyorwa" >
- <li> ... </li>
- </ul>
Isa zvinhu zvese zvakarongwa pamutsara mumwe une inline-block
uye mamwe mapedhi akareruka.
- <ul class = "inline" >
- <li> ... </li>
- </ul>
Rondedzero yematemu ane tsananguro dzawo.
- <dl>
- <dt> ... </dt>
- <dd> ... </ dd>
- </ dl>
Ita mazwi uye tsananguro mumutsara <dl>
wakatarisana-ne-parutivi.
- <dl class = "dl-horizontal" >
- <dt> ... </dt>
- <dd> ... </ dd>
- </ dl>
Musoro!Tsanangudzo dzakachinjika dzinozodimburira mazwi akareba zvekusakwana muchikamu chekuruboshwe gadzirisa text-overflow
. Munzvimbo dzakatetepa dzekutarisa, ivo vanozochinja kune default stacked marongero.
Putira zvidimbu zvemukati zvekodhi ne <code>
.
<section>
inofanira kuputirwa se inline.
- Semuenzaniso , < code> & lt ; chikamu & gt ;</ kodhi > inofanira kuputirwa semukati .
Shandisa <pre>
kune akawanda mitsara yekodhi. Ita shuwa kutiza mabhuraketi chero emakona ari mukodhi kuti ukwanise kuburitsa.
<p>Eyemuenzaniso mavara pano...</p>
- <pre>
- <p>Eyemuenzaniso mavara pano...</p>
- </pre>
Musoro!Iva nechokwadi chekuchengeta kodhi mukati <pre>
memategi padyo nekuruboshwe sezvinobvira; ichapa ma tabo ese.
Iwe unogona kusarudza kuwedzera .pre-scrollable
kirasi iyo inoisa max-urefu hwe350px uye inopa y-axis scrollbar.
Kune ekutanga masitaera - mwenje padding uye chete yakachinjika dividers - wedzera base kirasi .table
kune chero <table>
.
# | Zita rokutanga | Zita rokupedzisa | Username |
---|---|---|---|
1 | Mark | Otto | @mdo |
2 | Jacob | Thornton | @mafuta |
3 | Larry | Shiri |
- <tafura yekirasi = "tafura" >
- …
- </ table>
Wedzera chero anotevera makirasi .table
kukirasi yekutanga.
.table-striped
Inowedzera zebra-striping kune chero tafura mutsara mukati meiyo <tbody>
kuburikidza :nth-child
neCSS selector (isipo muIE7-8).
# | Zita rokutanga | Zita rokupedzisa | Username |
---|---|---|---|
1 | Mark | Otto | @mdo |
2 | Jacob | Thornton | @mafuta |
3 | Larry | Shiri |
- <tafura yekirasi = "tafura tafura-mitsetse" >
- …
- </ table>
.table-bordered
Wedzera miganhu uye makona akakomberedzwa patafura.
# | Zita rokutanga | Zita rokupedzisa | Username |
---|---|---|---|
1 | Mark | Otto | @mdo |
Mark | Otto | @getbootstrap | |
2 | Jacob | Thornton | @mafuta |
3 | Larry the Shiri |
- <tafura yekirasi = "tafura tafura-yakaganhurwa" >
- …
- </ table>
.table-hover
Ita kuti hover state pamitsetse yetafura mukati me <tbody>
.
# | Zita rokutanga | Zita rokupedzisa | Username |
---|---|---|---|
1 | Mark | Otto | @mdo |
2 | Jacob | Thornton | @mafuta |
3 | Larry the Shiri |
- <tafura yekirasi = "tafura tafura-hover" >
- …
- </ table>
.table-condensed
Inoita kuti matafura awedzere kuwirirana nekucheka cell padding nepakati.
# | Zita rokutanga | Zita rokupedzisa | Username |
---|---|---|---|
1 | Mark | Otto | @mdo |
2 | Jacob | Thornton | @mafuta |
3 | Larry the Shiri |
- <tafura yekirasi = "tafura yetafura-yakaderedzwa" >
- …
- </ table>
Shandisa makirasi emamiriro ekunze kupendesa mitsara yematafura.
Kirasi | Tsanangudzo |
---|---|
.success |
Zvinoratidza chiito chakabudirira kana chakanaka. |
.error |
Zvinoratidza chiitiko chine njodzi kana chingangove chakaipa. |
.warning |
Inoratidza yambiro ingada kutariswa. |
.info |
Inoshandiswa seimwe nzira kune yakasarudzika masitaera. |
# | Product | Payment Yatorwa | Status |
---|---|---|---|
1 | TB - Monthly | 01/04/2012 | Yakatenderwa |
2 | TB - Monthly | 02/04/2012 | Zvakaramba |
3 | TB - Monthly | 03/04/2012 | Pending |
4 | TB - Monthly | 04/04/2012 | Fona kuti usimbise |
- ...
- < tr class = "kubudirira" >
- <td> 1 < /td>
- <td>TB - Monthly</ td >
- <td> 01 / 04 / 2012 < /td>
- <td>Yatenderwa</ td >
- </ tr >
- ...
Rondedzero yetafura inotsigirwa HTML zvinhu uye mashandisirwo avanofanira kuita.
Tag | Tsanangudzo |
---|---|
<table> |
Kupeta chinhu chekuratidza data mune tabular fomati |
<thead> |
Chinhu chemudziyo wemitsara yemusoro wetafura ( <tr> ) kuisa mitsara yetafura |
<tbody> |
Container element yetafura mitsetse ( <tr> ) mumutumbi wetafura |
<tr> |
Container element yeseti yematafura maseru ( <td> kana <th> ) anooneka pamutsara mumwe |
<td> |
Default table cell |
<th> |
Yakakosha tafura sero yekoramu (kana mutsara, zvichienderana nekukura uye kuiswa) mavara |
<caption> |
Tsananguro kana pfupiso yezvakabatwa netafura, kunyanya inobatsira kuvaverengi vescreen |
- <tafura>
- <caption> ... </caption>
- <musoro>
- <tr>
- <th> ... </th>
- <th> ... </th>
- </ tr>
- </ musoro>
- <tbody>
- <tr>
- <td> ... </td>
- <td> ... </td>
- </ tr>
- </ tbody>
- </ table>
Ega ega mafomu ekudzora anogashira styling, asi pasina chero inodiwa base kirasi pane <form>
kana yakakura shanduko mumarkup. Mibairo yakaturikidzana, yakatarisana nekuruboshwe pamusoro pezvidzoro zvefomu.
- <form>
- <fieldset>
- <legend> Ngano </legend>
- <label> Zita rezita </ label>
- <input type = "text" placeholder = "Taipa chimwe chinhu ..." >
- <span class = "help-block" > Muenzaniso block-level rubatsiro runyorwa pano. </ span>
- <label class = "checkbox" >
- <input type = "checkbox" > Nditarise
- </ label>
- <button type = "submit" class = "btn" > Tumira </button>
- </fieldset>
- </ fomu>
Inosanganisirwa neBootstrap matatu esarudzo mafomu marongero emakesi ekushandisa akajairika.
Wedzera .form-search
kufomu uye .search-query
kune <input>
yekuwedzera-yakatenderedzwa mavara ekuisa.
- <form class = "form-search" >
- <input type = "text" class = "input-medium search-query" >
- <button type = "submit" class = "btn" > Tsvaga </button>
- </ fomu>
Wedzera .form-inline
kune mavara akarongedzerwa kuruboshwe uye inline-block zvidhiraivho kune compact marongero.
- <fomu kirasi = "fomu-inline" >
- <input type = "text" class = "input-small" placeholder = "Email" >
- <input type = "password" class = "input-small" placeholder = "Password" >
- <label class = "checkbox" >
- <input type = "checkbox" > Ndirangarirewo
- </ label>
- <button type = "submit" class = "btn" > Pinda </button>
- </ fomu>
Kurudyi ronesa mavara uye woayangarara kuruboshwe kuti aoneke pamutsetse wakafanana nemadhirairi. Inoda shanduko dzakawanda kubva pafomu rekutanga:
.form-horizontal
kune fomu.control-group
.control-label
kune iyo label.controls
kuti zvienzane
- <form class = "form-horizontal" >
- <div class = "control-group" >
- <label class = "control-label" ye = "inputEmail" > Email </label>
- <div class = "controls" >
- <input type = "text" id = "inputEmail" placeholder = " Email" >
- </ div>
- </ div>
- <div class = "control-group" >
- <label class = "control-label" ye = "inputPassword" > Password </label>
- <div class = "controls" >
- <input type = "password" id = "inputPassword" placeholder = " Password" >
- </ div>
- </ div>
- <div class = "control-group" >
- <div class = "controls" >
- <label class = "checkbox" >
- <input type = "checkbox" > Ndirangarirewo
- </ label>
- <button type = "submit" class = "btn" > Pinda </button>
- </ div>
- </ div>
- </ fomu>
Mienzaniso yezvidzoreso zvefomu zvakajairwa zvinotsigirwa muchimiro chechimiro chechimiro.
Mazhinji mafomu ekutonga, mavara-akavakirwa ekuisa ndima. Inosanganisira tsigiro yemhando dzese dzeHTML5: mavara, password, datetime, datetime-yenzvimbo, zuva, mwedzi, nguva, vhiki, nhamba, email, url, tsvaga, tel, uye ruvara.
Inoda kushandiswa kweiyo yakatarwa type
nguva dzese.
- <input type = "text" placeholder = "Mashoko ekupinza" >
Form control inotsigira mitsetse yakawanda yemavara. Chinja rows
hunhu sezvinodiwa.
- <textarea rows = "3" > </textarea>
Mabhokisi ekutarisa ndeekusarudza imwe kana akati wandei sarudzo mune runyorwa nepo maredhiyo ari ekusarudza imwe sarudzo kubva kune akawanda.
- <label class = "checkbox" >
- <input type = "checkbox" value = "" >
- Sarudzo yekutanga ndeichi neicho-iva nechokwadi chekusanganisira kuti sei zvakanaka
- </ label>
- <label class = "radio" >
- <input type = "radio" name = "optionsRadios" id = "optionsRadios1" value = "option1" yakatariswa >
- Sarudzo yekutanga ndeichi neicho-iva nechokwadi chekusanganisira kuti sei zvakanaka
- </ label>
- <label class = "radio" >
- <input type = "radio" name = "optionsRadios" id = "optionsRadios2" value = "option2" >
- Sarudzo yechipiri inogona kuve chimwe chinhu uye kuisarudza kunobvisa sarudzo yekutanga
- </ label>
Wedzera .inline
kirasi kunhevedzano yemabhokisi echeki kana maredhiyo ekudzora anoonekwa pamutsetse mumwe chete.
- <label class = "checkbox inline" >
- <input type = "checkbox" id = "inlineCheckbox1" value = "option1" > 1
- </ label>
- <label class = "checkbox inline" >
- <input type = "checkbox" id = "inlineCheckbox2" value = "option2" > 2
- </ label>
- <label class = "checkbox inline" >
- <input type = "checkbox" id = "inlineCheckbox3" value = "option3" > 3
- </ label>
Shandisa iyo yakasarudzika sarudzo kana tsanangura a multiple="multiple"
kuratidza akawanda sarudzo kamwechete.
- <sarudza>
- <option> 1 </option>
- <option> 2 </option>
- <option> 3 </option>
- <option> 4 </option>
- <option> 5 </option>
- </sarudza>
- <sarudza akawanda = "multiple" >
- <option> 1 </option>
- <option> 2 </option>
- <option> 3 </option>
- <option> 4 </option>
- <option> 5 </option>
- </sarudza>
Kuwedzera pamusoro pezvimiro zvebhurawuza zviripo, Bootstrap inosanganisira zvimwe zvinobatsira zvefomu.
Wedzera mavara kana mabhatani pamberi kana mushure mechero mavara-based ekuisa. Ziva kuti select
zvinhu hazvitsigirwe pano.
Peta .add-on
neine input
imwe yemakirasi maviri kufanogadzirira kana kuisa mavara kune inopinza.
- <div class = "input-prepend" >
- <span class = "add-on" > @ </span>
- <input class = "span2" id = "prependedInput" type = "text" placeholder = "Username" >
- </ div>
- <div class = "input-append" >
- <input class = "span2" id = "appendedInput" type = "text" >
- <span class = "add-on" > .00 </span>
- </ div>
Shandisa ese makirasi uye maviri .add-on
maekisheni ekugadzirira nekuwedzera mapindiro.
- <div class = "input-prepend input-append" >
- <span class = "add-on" > $ </span>
- <input class = "span2" id = "appendedPrependedInput" type = "text" >
- <span class = "add-on" > .00 </span>
- </ div>
Panzvimbo peiyo <span>
ine mavara, shandisa a .btn
kuisa bhatani (kana maviri) kune yekuisa.
- <div class = "input-append" >
- <input class = "span2" id = "appendedInputButton" type = "text" >
- <button class = "btn" type = "bhatani" > Enda! </ button>
- </ div>
- <div class = "input-append" >
- <input class = "span2" id = "appendedInputButtons" type = "text" >
- <button class = "btn" type = "button" > Tsvaga </button>
- <button class = "btn" type = "button" > Options </button>
- </ div>
- <div class = "input-append" >
- <input class = "span2" id = "appendedDropdownButton" type = "text" >
- <div class = "btn-group" >
- <button class = "btn dropdown-toggle" data-toggle = "dropdown" >
- Chiito
- <span class = "caret" > </ span>
- </ button>
- <ul class = "dropdown-menu" >
- ...
- </ul>
- </ div>
- </ div>
- <div class = "input-prepend" >
- <div class = "btn-group" >
- <button class = "btn dropdown-toggle" data-toggle = "dropdown" >
- Chiito
- <span class = "caret" > </ span>
- </ button>
- <ul class = "dropdown-menu" >
- ...
- </ul>
- </ div>
- <input class = "span2" id = "prependedDropdownButton" type = "text" >
- </ div>
- <div class = "input-prepend input-append" >
- <div class = "btn-group" >
- <button class = "btn dropdown-toggle" data-toggle = "dropdown" >
- Chiito
- <span class = "caret" > </ span>
- </ button>
- <ul class = "dropdown-menu" >
- ...
- </ul>
- </ div>
- <input class = "span2" id = "appendedPrependedDropdownButton" type = "text" >
- <div class = "btn-group" >
- <button class = "btn dropdown-toggle" data-toggle = "dropdown" >
- Chiito
- <span class = "caret" > </ span>
- </ button>
- <ul class = "dropdown-menu" >
- ...
- </ul>
- </ div>
- </ div>
- <form>
- <div class = "input-prepend" >
- <div class = "btn-group" > ... </div>
- <input type = "text" >
- </ div>
- <div class = "input-append" >
- <input type = "text" >
- <div class = "btn-group" > ... </div>
- </ div>
- </ fomu>
- <form class = "form-search" >
- <div class = "input-append" >
- <input type = "text" class = "span2 search-query" >
- <button type = "submit" class = "btn" > Tsvaga </button>
- </ div>
- <div class = "input-prepend" >
- <button type = "submit" class = "btn" > Tsvaga </button>
- <input type = "text" class = "span2 search-query" >
- </ div>
- </ fomu>
Shandisa hukama saizi makirasi senge .input-large
kana kufananidza zvaunopinza kune grid column saizi uchishandisa .span*
makirasi.
Ita chero chinhu <input>
kana <textarea>
chinhu chiite senge block level element.
- <input class = "input-block-level" type = "text" placeholder = ".input-block-level" >
- <input class = "input-mini" type = "text" placeholder = ".input-mini" >
- <input class = "input-small" type = "text" placeholder = ".input-small" >
- <input class = "input-medium" type = "text" placeholder = ".input-medium" >
- <input class = "input-large" type = "text" placeholder = ".input-large" >
- <input class = "input-xlarge" type = "text" placeholder = ".input-xlarge" >
- <input class = "input-xxlarge" type = "text" placeholder = ".input-xxlarge" >
Musoro!Mushanduro dzinotevera, tichange tichishandura mashandisirwo emakirasi ekuisa aya kuti aenderane nehukuru hwemabhatani edu. Semuenzaniso, .input-large
ichawedzera padding uye font-saizi yekupinza.
Shandisa .span1
kuti .span12
kune zvinopinda zvinoenderana nehukuru hwakafanana hwegidhi column.
- <input class = "span1" type = "text" placeholder = ".span1" >
- <input class = "span2" type = "text" placeholder = ".span2" >
- <input class = "span3" type = "text" placeholder = ".span3" >
- <select class = "span1" >
- ...
- </sarudza>
- <select class = "span2" >
- ...
- </sarudza>
- <select class = "span3" >
- ...
- </sarudza>
Kune akawanda mapindiro egidhi pamutsetse, shandisa .controls-row
kirasi yekugadziridza kuitira nzvimbo yakakodzera . Inoyangarara zvinopinza kuti idonhe chena-nzvimbo, inoseta miganho yakakodzera, uye inobvisa iyo inoyangarara.
- <div class = "controls" >
- <input class = "span5" type = "text" placeholder = ".span5" >
- </ div>
- <div class = "controls controls-row" >
- <input class = "span4" type = "text" placeholder = ".span4" >
- <input class = "span1" type = "text" placeholder = ".span1" >
- </ div>
- ...
Ipa data mune fomu risingagadzirike pasina kushandisa chaiyo fomu markup.
- <span class = "input-xlarge isingashanduki-input" > Kumwe kukosha pano </span>
Pedzisa fomu neboka rezviito (mabhatani). Kana yaiswa mukati me .form-actions
, mabhatani anozozvipinza otomatiki kuti aenderane nemafomu ekudzora.
- <div kirasi = "fomu-zviito" >
- <button type = "submit" class = "btn btn-primary" > Chengetedza shanduko </button>
- <button type = "button" class = "btn" > Cancel </button>
- </ div>
Inline uye block level tsigiro yezvinyorwa zvekubatsira zvinoonekwa zvakatenderedza fomu zvidzoreso.
- <input type = "text" ><span class = "help-inline" > Rubatsiro rwemashoko mukati </span>
- <input type = "text" ><span class = "help-block" > Chivharo chakareba chemashoko erubatsiro chinotyora pamutsetse mutsva uye chinogona kuwedzera kupfuura mutsetse mumwe. </ span>
Ipa mhinduro kuvashandisi kana vashanyi vane mamiriro ekutanga emhinduro pamafomu ekudzora nemalebula.
Isu tinobvisa masitaera ekutanga outline
pane mamwe mafomu ekutonga uye toisa a box-shadow
panzvimbo yayo ye :focus
.
- <input class = "input-xlarge" id = "focusedInput" type = "text" value = "Izvi zvakatariswa..." >
Maitiro ekuisa pachishandiswa default browser kushanda ne :invalid
. Rondedzera a type
, wedzera required
hunhu kana munda usiri wekusarudza, uye (kana zvichibvira) tsanangura a pattern
.
Izvi hazviwanikwe mumavhezheni eInternet Explorer 7-9 nekuda kwekushaikwa kwerutsigiro rweCSS pseudo selectors.
- <input class = "span3" type = "email" inodiwa >
Wedzera disabled
hunhu pane inopinza kudzivirira mushandisi kupinza uye kukonzeresa kutaridzika kwakasiyana zvishoma.
- <input class = "input-xlarge" id = "disabledInput" type = "text" placeholder = "Yakaremara yekupinda pano..." yakadzimwa >
Bootstrap inosanganisira yekusimbisa masitaera yekukanganisa, yambiro, ruzivo, uye mameseji ebudiriro. Kuti ushandise, wedzera kirasi yakakodzera kune yakatenderedza .control-group
.
- <div class = "control-group yambiro" >
- <label class = "control-label" ye = "inputWarning" > Input with yambiro </label>
- <div class = "controls" >
- <input type = "text" id = "inputWarning" >
- <span class = "help-inline" > Chimwe chinhu chingave chakashata </span>
- </ div>
- </ div>
- <div class = "control-group error" >
- <label class = "control-label" ye = "inputError" > Input ine kukanganisa </label>
- <div class = "controls" >
- <input type = "text" id = "inputError" >
- <span class = "help-inline" > Ndokumbira ugadzirise kukanganisa </span>
- </ div>
- </ div>
- <div class = "control-group info" >
- <label class = "control-label" ye = "inputInfo" > Input ine ruzivo </label>
- <div class = "controls" >
- <input type = "text" id = "inputInfo" >
- <span class = "help-inline" > Zita rekushandisa rakatotorwa </span>
- </ div>
- </ div>
- <div class = "control-group kubudirira" >
- <label class = "control-label" ye = "inputSuccess" > Input inobudirira </label>
- <div class = "controls" >
- <input type = "text" id = "inputSuccess" >
- <span class = "rubatsiro-inline" > Woohoo! </ span>
- </ div>
- </ div>
Wedzera makirasi kune <img>
chinhu kuti zvive nyore kutaira mifananidzo mune chero chirongwa.
- <img src = "..." kirasi = "img-yakatenderedzwa" >
- <img src = "..." class = "img-circle" >
- <img src = "..." kirasi = "img-polaroid" >
Musoro! .img-rounded
uye .img-circle
usashande muIE7-8 nekuda kwekushaya border-radius
rutsigiro.
140 icons mune sprite fomu, inowanikwa mune yakasviba grey (default) uye chena, yakapihwa neGlyphicons .
Glyphicons Halflings haiwanzo kuwanikwa mahara, asi kurongeka pakati peBootstrap nevagadziri veGlyphicons vakaita kuti izvi zvigoneke pasina muripo kwauri sevagadziri. Sekutenda, tinokukumbira kuti ubatanidze chinongedzo chekudzokera kuGlyphicons pese pazvinoita.
Yese ma icons anoda <i>
tag ine yakasarudzika kirasi, prefixed ne icon-
. Kuti ushandise, isa kodhi inotevera chero kupi zvako:
- <i class = "icon-search" > </i>
Kune zvakare masitaera anowanikwa kune inverted (chena) icons, akagadzirirwa nekirasi imwe yekuwedzera. Isu tichanyatso simbisa iyi kirasi pane hover uye inoshanda nyika kune nav uye yekudonha zvinongedzo.
- <i class = "icon-search icon-white" > </i>
Musoro!Paunenge uchishandisa parutivi tambo dzemavara, semabhatani kana nav zvinongedzo, ita shuwa yekusiya nzvimbo mushure me <i>
tag yepakati yakakodzera.
Ashandise mumabhatani, mapoka emabhatani eturubhu, kufamba, kana mamepu akafanorongwa.
- <div class = "btn-toolbar" >
- <div class = "btn-group" >
- <a class = "btn" href = "#" ><i class = "icon-align-left" ></i></a>
- <a class = "btn" href = "#" ><i class = "icon-align-center" ></i></a>
- <a class = "btn" href = "#" ><i class = "icon-align-right" ></i></a>
- <a class = "btn" href = "#" ><i class = "icon-align-justify" ></i></a>
- </ div>
- </ div>
- <div class = "btn-group" >
- <a class = "btn btn-primary" href = "#" ><i class = "icon-user icon-white" ></i> Mushandisi </a>
- <a class = "btn btn-primary dropdown-toggle" data-toggle = "dropdown" href = "#" ><span class = "caret" ></span></a>
- <ul class = "dropdown-menu" >
- <li><a href = "#" ><i class = "icon-penzura" ></i> Rongedza </a></li>
- <li><a href = "#" ><i class = "icon-trash" ></i> Delete </a></li>
- <li><a href = "#" ><i class = "icon-ban-circle" ></i> Kurambidzwa </a></li>
- <li kirasi = "divider" > </ li>
- <li><a href = "#" ><i class = "i" ></i> Ita admin </a></li>
- </ul>
- </ div>
- <a class = "btn btn-large" href = "#" ><i class = "icon-star" ></i> Nyenyedzi </a>
- <a class = "btn btn-small" href = "#" ><i class = "icon-star" ></i> Nyenyedzi </a>
- <a class = "btn btn-mini" href = "#" ><i class = "icon-star" ></i> Nyenyedzi </a>
- <ul class = "nav nav-list" >
- <li class = "active" ><a href = "#" ><i class = "icon-home icon-white" ></i> Home </a></li>
- <li><a href = "#" ><i class = "icon-book" ></i> Library </a></li>
- <li><a href = "#" ><i class = "icon-penzura" ></i> Zvishandiso </a></li>
- <li><a href = "#" ><i class = "i" ></i> Zvimwe </a> </li>
- </ul>
- <div class = "control-group" >
- <label class = "control-label" ye = "inputIcon" > Kero yeemail </label>
- <div class = "controls" >
- <div class = "input-prepend" >
- <span class = "add-on" ><i class = "icon-envelope" ></i></span>
- <input class = "span2" id = "inputIcon" type = "text" >
- </ div>
- </ div>
- </ div>