Fɔndamɛnt HTML ɛlimɛnt dɛn we dɛn stayl ɛn ɛnhans wit klas dɛn we dɛn kin ɛkstɛnd.
Ɔl di HTML edlayn dɛn, <h1>
tru <h6>
de.
Bootstrap in glob ɔl difɔlt font-size
na 14px , wit wan line-height
we na 20px . Dɛn kin yuz dis fɔ di <body>
ɛn ɔl di paregraf dɛn. Apat frɔm dat, <p>
(paragraf dɛn) kin gɛt wan bɔt margin we na af pan dɛn layn-ayt (10px bay difɔlt).
Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus ɛn magnis dis we de bɔn pikin, nascetur ridiculus mus. Nullam id dolor id nibh ultrisis vehikula.
Cum sociis natoque penatibus ɛn magnis dis we de bɔn pikin, nascetur ridiculus mus. Donec ullamcorper nulla non metus ɔktɔ fringila. Duis mollis, est non komodo luktus, nisi erat porttitor ligula, eget lasinia odio sem nec elit. Donec ullamcorper nulla non metus ɔktɔ fringila.
Maecenas sed diam eget risus varius blandit sidɔm amet nɔ magna. Donec id elit non mi porta gravida na eget metus. Duis mollis, est non komodo luktus, nisi erat porttitor ligula, eget lasinia odio sem nec elit.
<p> ... </p> fɔ di wan dɛn we de
Mek wan paregraf difrɛn bay we yu ad .lead
.
Vivamus sagittis lakus vel augu laoreet rutrum faucibus dolor ɔkta. Duis mollis, est we nɔto kɔmɔdo luktɔs.
<p klas = "lid" > ... </p>
Di taypografik skel na bays pan tu LESS vɛriɔbul dɛn insay vɛriɔbul dɛn.less : @baseFontSize
ɛn @baseLineHeight
. Di fɔs wan na di bays font-sayz we dɛn yuz ɔlsay ɛn di sɛkɔn wan na di bays layn-ayt. Wi de yuz dɛn vɛriɔbul dɛn de ɛn sɔm simpul mats fɔ mek di margin, padding, ɛn layn-ayt dɛn fɔ ɔl wi tayp ɛn mɔ. Kastamayz dɛn ɛn Bootstrap de adap.
Mek yus to HTML in difɔlt ɛmpɛshmɛnt tɛg dɛn wit laytwɛt stayl dɛn.
<small>
Fɔ de-ɛmpɛshi inlayn ɔ blɔk dɛn fɔ tɛks, yuz di smɔl tag.
Dis layn fɔ di tɛks dɛn min fɔ trit am lɛk fayn print.
<p> <small> Dis layn fɔ tɛks min fɔ trit am lɛk fayn print. </smɛl> </p>
Fɔ ɛksplen wan smɔl tɛks wit wan font-weit we ebi.
Di smɔl pat pan di tɛks we de dɔŋ ya de sho as bold tɛks .
<strong> dɛn rɛnd am lɛk bold tɛks </strong>
Fɔ ɛksplen wan smɔl tɛks wit italiks.
Di smɔl pat pan di tɛks we de dɔŋ ya de sho lɛk tɛks we dɛn rayt italiks .
<em> dɛn rɛnd am lɛk tɛks we dɛn rayt italiks </em>
Hed dɛn de ɔp!Fil fri fɔ yuz <b>
ɛn <i>
insay HTML5. <b>
na fɔ aylayt wɔd ɔ frɛz dɛn we nɔ de gi ɔda impɔtants we <i>
na fɔ vɔys, tɛknikal wɔd dɛn, ɛn ɔda tin dɛn.
I izi fɔ rialayn tɛks to kɔmpɔnɛnt dɛn wit tɛks alaynɛshɔn klas dɛn.
Tekst we de alaynɛd na di lɛft.
Di tɛks we dɛn alaynɛd na di sɛnta.
Tekst we dɛn alaynɛd rayt.
- <p klas = "tɛks-lɛft" > Left alaynɛt tɛks. </p>we de sho aw fɔ du dat
- <p class = "text-center" > Sɛnta alaynɛt tɛks. </p>we de sho aw fɔ du dat
- <p class = "text-right" > Rayt alaynɛt tɛks. </p>we de sho aw fɔ du dat
Kɔnvɛy minin tru kɔlɔ wit wan anful ɛmpɛshimɛnt yutiliti klas dɛm.
Fusce dapibus, tellus ac cursus komodo, tortor mauris nibh.
Etiam porta sem malesuada magna mollis yusmod.
Donec ullamcorper nulla non metus ɔktɔ fringila.
Aenean yu leo quam. Pellentesque ornare na di sem lacinia kwam venenatis.
Duis mollis, est nɔ komodo luktɔs, nisi erat pɔtitɔ ligula.
- <p klas = "muted" > Fusce dapibus, tellus ak kɔs kɔmɔdo, tortor mauris nibh. </p>we de sho aw fɔ du dat
- <p klas = "tɛks-wɔnin" > Etiam porta sem malesuada magna mollis euismod. </p>we de sho aw fɔ du dat
- <p klas = "tɛks-ɛrɔd" > Donec ullamcorper nula nɔ mɛtus ɔkta fringila. </p>we de sho aw fɔ du dat
- <p klas = "tɛks-info" > Aenean yu leo quam. Pɛlɛntesk ɔnare sem lacinia kwam venɛnatis. </p>we de sho aw fɔ du dat
- <p klas = "tɛks-sakses" > Duis mollis, est nɔ kɔmodo lɔktɔs, nisi erat pɔtitɔ ligula. </p>we de sho aw fɔ du dat
Stylized implimentishɔn fɔ HTML in <abbr>
ɛlimɛnt fɔ abrevieshɔn ɛn akɔdin fɔ sho di ɛkspanda vɛshɔn pan hova. Abbrevieshɔn dɛn we gɛt title
atribyut gɛt layt dɔt bɔt bɔda ɛn ɛp kɔsa we yu de hova, we de gi ɔda kɔntɛks we yu de hova.
<abbr>
Fɔ ɛkspanda tɛks pan lɔng hova fɔ wan abrevieshɔn, put di title
atribyut.
Wan shɔt we fɔ di wɔd atribyut na attr .
<abbr taytul = "atribyut" > atr </abbr>
<abbr class="initialism">
Ad .initialism
to wan abrevieshɔn fɔ wan smɔl font-sayz.
HTML na di bes tin sins slais bred.
<abbr title = "HaypaTɛks Mak-ap Langwej" klas = "initialism" > HTML </abbr>
Prɛzɛnt kɔntakt infɔmeshɔn fɔ di gret gret granpa we de nia yu ɔ di wan ol bɔdi fɔ wok.
<address>
Priziv fɔmat bay we yu dɔn ɔl di layn dɛn wit <br>
.
- <adrɛs>
- <strong> Twita, Ink. </strong><br>
- 795 folsom ave, suite 600 <br>
- San Fransisko, CA 94107 <br>
- <abbr taytul = "Fɔn" > P: </abbr> (123) 456-7890
- </adrɛs>
- <adrɛs>
- <strong> Ful Nem </strong><br>
- <a href = "mailto:#" > fɔs.las@ɛgzampul.kɔm </a>
- </adrɛs>
Fɔ kot blɔk dɛn fɔ kɔntinyu frɔm ɔda sɔs insay yu dɔkyumɛnt.
Rap <blockquote>
rawnd ɛni HTML as di kot. Fɔ stret kot dɛn wi kin advays fɔ mek wan <p>
.
Lorem ipsum dolor sidon amet, konsektetur adipissing elit. Intaj posuere erat wan ante.
- <blɔkkɔt>
- <p> Lorem ipsum dolor sidɔm amet, kɔnsɛktɛtur adipisin ɛlit. Intaj posuere erat wan ante. </p>we de sho aw fɔ du dat
- </blɔkkɔt>
Stayl ɛn kɔntinyu chenj fɔ simpul chenj dɛn na wan standad blɔkkɔt.
Ad <small>
tag fɔ no di say we dɛn pul am. Rap di nem fɔ di sɔs wok insay <cite>
.
Lorem ipsum dolor sidon amet, konsektetur adipissing elit. Intaj posuere erat wan ante.
Sɔmbɔdi we gɛt nem na Sos Taytul
- <blɔkkɔt>
- <p> Lorem ipsum dolor sidɔm amet, kɔnsɛktɛtur adipisin ɛlit. Intaj posuere erat wan ante. </p>we de sho aw fɔ du dat
- <small> Sɔmbɔdi we gɛt nem <cite title = "Sɔs Taytul" > Sɔs Taytul </cite></small>
- </blɔkkɔt>
Yuz .pull-right
fɔ wan blɔkkɔt we de flɔt, we de alaynɛd rayt.
- <blɔkkɔt klas = "pul-rayt" >
- ...
- </blɔkkɔt>
Wan list fɔ di tin dɛn we di ɔda nɔ impɔtant klia wan.
- <ul> fɔ di wan dɛn we de
- <li> ... </li> fɔ di wan dɛn we de
- </ul> fɔ di wan dɛn we de
Wan list fɔ di tin dɛn we di ɔda impɔtant klia wan.
- <ol> fɔ di wan dɛn we de
- <li> ... </li> fɔ di wan dɛn we de
- </ol>we de sho aw fɔ du dat
Rimov di difɔlt list-style
ɛn lɛft pad pan di tin dɛn we de na di list (pikin dɛn nɔmɔ).
- <ul klas = "nɔ stayl" >
- <li> ... </li> fɔ di wan dɛn we de
- </ul> fɔ di wan dɛn we de
Put ɔl di list tin dɛn na wan layn wit inline-block
ɛn sɔm layt pad.
- <ul klas = "inlayn" >
- <li> ... </li> fɔ di wan dɛn we de
- </ul> fɔ di wan dɛn we de
Wan list fɔ di wɔd dɛn wit di diskripshɔn dɛn we gɛt fɔ du wit dɛn.
- <dl> fɔ di wan dɛn we de
- <dt> ... </dt> fɔ di wan dɛn we de
- <dd> ... </dd> fɔ di wan dɛn we de
- </dl> fɔ di wan dɛn we de
Mek tɛm ɛn diskripshɔn dɛn na <dl>
layn ɔp sayd-to-sayd.
- <dl klas = "dl-ɔrizɔntal" >
- <dt> ... </dt> fɔ di wan dɛn we de
- <dd> ... </dd> fɔ di wan dɛn we de
- </dl> fɔ di wan dɛn we de
Hed dɛn de ɔp!Ɔrizɔntal diskripshɔn list dɛn go kɔt tɛm dɛn we tu lɔng fɔ fit insay di lɛft kɔlɔm fiks text-overflow
. Insay smɔl smɔl viupɔt dɛn, dɛn go chenj to di difɔlt layout we dɛn dɔn stak.
Rap inlayn snipet dɛn fɔ kɔd wit <code>
.
<section>
dɛn fɔ rap am as inlayn.
- Fɔ ɛgzampul , <kɔd> & lt ; sekshɔn & gt ;</ kɔd > fɔ rap lɛk inlayn .
Yuz <pre>
fɔ bɔku layn dɛn fɔ kɔd. Mek shɔ se yu rɔnawe pan ɛni angul brakɛt na di kɔd fɔ mek yu rɛnd fayn fayn wan.
<p>Sampul tɛks ya...</p>
- <prɛ>
- <p>Sampul tɛks ya...</p>
- </pre> fɔ di wan dɛn we de
Hed dɛn de ɔp!Mek shɔ se yu kip kɔd insay <pre>
tag dɛn as klos to di lɛft as yu ebul; i go rɛnd ɔl di tab dɛn.
Yu kin opshɔnali ad di .pre-scrollable
klas we go sɛt maks-ayt fɔ 350px ɛn gi wan y-aks skrolba.
Fɔ di bɛsis stayl—layt pad ɛn jɔs ɔrizɔntal divayda dɛn—ad di bays klas .table
to ɛni <table>
.
# Di wan dɛn we de | Fɔs nem | Las nem | Yuzɛn nem |
---|---|---|---|
1. Di wan dɛn we de | Mak | Ɔto bin de | @mdo na @mdo |
2. Di wan dɛn we de | Jekɔb | Tɔntɔn | @bɔmp |
3. Di wan dɛn we de | Lari bin de tɔk | di Bɔd | @twita na di twitter |
- <tebul klas = "tebul" >
- ...
- </tebul>
Ad ɛni wan pan di klas dɛn we de dɔŋ ya to di .table
bays klas.
.table-striped
Ad zebra-striping to ɛni tebul row insay di <tbody>
via di :nth-child
CSS sɛlɛktɔ (nɔ de na IE7-8).
# Di wan dɛn we de | Fɔs nem | Las nem | Yuzɛn nem |
---|---|---|---|
1. Di wan dɛn we de | Mak | Ɔto bin de | @mdo na @mdo |
2. Di wan dɛn we de | Jekɔb | Tɔntɔn | @bɔmp |
3. Di wan dɛn we de | Lari bin de tɔk | di Bɔd | @twita na di twitter |
- <tebul klas = "tebul tebul-strip" >
- ...
- </tebul>
.table-bordered
Ad bɔda dɛn ɛn kɔna dɛn we gɛt rawnd to di tebul.
# Di wan dɛn we de | Fɔs nem | Las nem | Yuzɛn nem |
---|---|---|---|
1. Di wan dɛn we de | Mak | Ɔto bin de | @mdo na @mdo |
Mak | Ɔto bin de | @gɛtbɔtstrap | |
2. Di wan dɛn we de | Jekɔb | Tɔntɔn | @bɔmp |
3. Di wan dɛn we de | Larry di Bɔd | @twita na di twitter |
- <tebul klas = "tebul-bɔda" >
- ...
- </tebul>
.table-hover
Enable wan hover stet pan tebul rows insay wan <tbody>
.
# Di wan dɛn we de | Fɔs nem | Las nem | Yuzɛn nem |
---|---|---|---|
1. Di wan dɛn we de | Mak | Ɔto bin de | @mdo na @mdo |
2. Di wan dɛn we de | Jekɔb | Tɔntɔn | @bɔmp |
3. Di wan dɛn we de | Larry di Bɔd | @twita na di twitter |
- <tebul klas = "tebul tebul-hova" >
- ...
- </tebul>
.table-condensed
Mek tebul dɛn kɔmpakt mɔ bay we i de kɔt sɛl pad insay af.
# Di wan dɛn we de | Fɔs nem | Las nem | Yuzɛn nem |
---|---|---|---|
1. Di wan dɛn we de | Mak | Ɔto bin de | @mdo na @mdo |
2. Di wan dɛn we de | Jekɔb | Tɔntɔn | @bɔmp |
3. Di wan dɛn we de | Larry di Bɔd | @twita na di twitter |
- <tebul klas = "tebul tebul-kɔndɛns" >
- ...
- </tebul>
Yuz kɔntɛkstual klas fɔ kala tebul rɔw dɛn.
Klas | Tɔk bɔt |
---|---|
.success |
I de sho se pɔsin dɔn du sɔntin fayn ɔ i dɔn du gud tin. |
.error |
I de sho se dɛn du sɔntin we denja ɔ we go mek dɛn du bad tin. |
.warning |
I de sho se dɛn gɛt wɔnin we go nid fɔ pe atɛnshɔn. |
.info |
Yuz am as ɔda we fɔ di difɔlt stayl dɛn. |
# Di wan dɛn we de | Sɔntin | Peyment we dɛn tek | Pozishɔn |
---|---|---|---|
1. Di wan dɛn we de | TB - Ɛvri mɔnt | 01/04/2012 bin de | Dɔn gri |
2. Di wan dɛn we de | TB - Ɛvri mɔnt | 02/04/2012 bin de | Dɛn nɔ gri fɔ tek am |
3. Di wan dɛn we de | TB - Ɛvri mɔnt | 03/04/2012 bin de | De wet |
4. Di wan dɛn we de | TB - Ɛvri mɔnt | 04/04/2012 bin de | Kɔl insay fɔ kɔnfɔm |
- ...
- < tr klas = "sakses" >
- <td> 1 < /td> fɔ di wan dɛn we de
- <td>TB - Ɛvri mɔnt</ td >
- <td> 01 / 04 / 2012 < /td>
- <td>Dɛn dɔn gri fɔ</ td >
- </ tr > we de na di wɔl
- ...
Lista fɔ di tebul HTML ɛlimɛnt dɛn we dɛn sɔpɔt ɛn aw dɛn fɔ yuz dɛn.
Pent | Tɔk bɔt |
---|---|
<table> |
Wrapping element fɔ sho data insay wan tebul fɔmat |
<thead> |
Kɔntinɛnt ɛlimɛnt fɔ tebul hεda rɔw dɛn ( <tr> ) fɔ lɛbul tebul kɔlɔm dɛn |
<tbody> |
Kɔntinɛnt ɛlimɛnt fɔ tebul rɔw dɛn ( <tr> ) na di bɔdi fɔ di tebul |
<tr> |
Kɔntinɛnt ɛlimɛnt fɔ wan sɛt fɔ tebul sɛl dɛn ( <td> ɔ <th> ) we de apia na wan rɔw |
<td> |
Difɔlt tebul sɛl |
<th> |
Speshal tebul sɛl fɔ kɔlɔm (ɔ row, dipen pan skɔp ɛn ples) lɛbl dɛn |
<caption> |
Diskripshɔn ɔ sɔma fɔ wetin di tebul gɛt, mɔ fɔ di wan dɛn we de rid di skrin |
- <tebul>
- <kapshɔn> ... </kapshɔn>
- <di ed>
- <tr> fɔ di wan dɛn we de
- <th> ... </th> fɔ di wan dɛn we de
- <th> ... </th> fɔ di wan dɛn we de
- </tr>we de sho aw fɔ du dat
- </thead> fɔ di wan dɛn we de
- <tbɔdi>
- <tr> fɔ di wan dɛn we de
- <td> ... </td> fɔ di wan dɛn we de
- <td> ... </td> fɔ di wan dɛn we de
- </tr>we de sho aw fɔ du dat
- </tbɔdi>
- </tebul>
Individyual fɔm kɔntrol dɛn de gɛt stayl, bɔt witout ɛni rikwayd bays klas pan di <form>
ɔ big chenj dɛn na mak. Rizult in stak, lɛft-alayn lɛbl dɛn ɔp fɔm kɔntrol dɛn.
- <fɔm>
- <fild sɛt>
- <lɛjɛnd> Lɛjɛnd </lɛjɛnd>
- <lɛbul> Lebul nem </label>
- <input type = "text" pleshɔlda = "Tayp sɔntin..." >
- <span class = "help-block" > Ɛgzampul blɔk-lɛvel ɛp tɛks ya. </span> fɔ di wan dɛn we de
- <lɛbul klas = "chɛkbɔks" >
- <input type = "checkbox" > Chɛk mi aut
- </label> fɔ di wan dɛn we de
- <bɔtin tayp = "sɔbmit" klas = "btn" > Sɔbmit </bɔtin>
- </fild sɛt>
- </fɔm>
Inklud wit Bootstrap na tri opshɔnal fɔm layout fɔ kɔmɔn yus kes dɛn.
Ad .form-search
to di fɔm ɛn .search-query
to di <input>
fɔ wan ɛkstra-raun tɛks input.
- <fɔm klas = "fɔm-sɔch" >
- <input tayp = "tɛks" klas = "input-midiɔm sɔch-kwɛstyɔn" >
- <bɔtin tayp = "sɔbmit" klas = "btn" > Sɔch </bɔtin>
- </fɔm>
Ad .form-inline
fɔ lɛbl dɛn we alaynɛd na di lɛft ɛn inlayn-blɔk kɔntrol dɛn fɔ wan kɔmpakt layout.
- <fɔm klas = "fɔm-inlayn" >
- <input tayp = "tɛks" klas = "input-smɔl" pleshɔlda = "Imel" >
- <input tayp = "paswɔd" klas = "input-smɔl" pleshɔlda = "Paswɔd" >
- <lɛbul klas = "chɛkbɔks" >
- <input type = "checkbox" > Mɛmba mi
- </label> fɔ di wan dɛn we de
- <bɔtin tayp = "sɔbmit" klas = "btn" > Sayn insay </bɔtin>
- </fɔm>
Rayt alayn di lɛbl dɛn ɛn flot dɛn na di lɛft fɔ mek dɛn apia na di sem layn we di kɔntrol dɛn de. I nid fɔ mek dɛn chenj di mak ɔp pas ɔl frɔm wan difɔlt fɔm:
.form-horizontal
to di fɔm.control-group
.control-label
to di lɛbl.controls
fɔ mek dɛn alaynɛt fayn fayn wan
- <fɔm klas = "fɔm-ɔrizɔntal" >
- <div klas = "kɔntrol-grup" >
- <lɛbul klas = "kɔntrol-lɛbul" fɔ = "inputImel" > Imel </label>
- <div klas = "kɔntrol dɛn" >
- <input tayp = "tɛks" id = "inputImel" pleshɔlda = "Imel" >
- </div> fɔ di wan dɛn we de
- </div> fɔ di wan dɛn we de
- <div klas = "kɔntrol-grup" >
- <lɛbul klas = "kɔntrol-lɛbul" fɔ = "inputPaswɔd" > Paswɔd </label>
- <div klas = "kɔntrol dɛn" >
- <input tayp = "paswɔd" id = "inputPaswɔd" pleshɔlda = "Paswɔd" >
- </div> fɔ di wan dɛn we de
- </div> fɔ di wan dɛn we de
- <div klas = "kɔntrol-grup" >
- <div klas = "kɔntrol dɛn" >
- <lɛbul klas = "chɛkbɔks" >
- <input type = "checkbox" > Mɛmba mi
- </label> fɔ di wan dɛn we de
- <bɔtin tayp = "sɔbmit" klas = "btn" > Sayn insay </bɔtin>
- </div> fɔ di wan dɛn we de
- </div> fɔ di wan dɛn we de
- </fɔm>
Ɛgzampul dɛn fɔ standad fɔm kɔntrol dɛn we dɛn sɔpɔt insay wan ɛgzampul fɔm layout.
Mɔs kɔmɔn fɔm kɔntrol, tɛks-bɛs input fil dɛn. Inklud sɔpɔt fɔ ɔl di kayn HTML5 dɛn: tɛks, paswɔd, de tɛm, de tɛm-lɔkal, de, mɔnt, tɛm, wik, nɔmba, imel, url, sɔch, tel, ɛn kɔlɔ.
Rikways fɔ yuz wan spɛsifikɛd type
ɔltɛm.
- <input tayp = "tɛks" pleshɔlda = "Tɛks input" >
Fɔm kɔntrol we de sɔpɔt bɔku layn dɛn na tɛks. Chenj rows
atribyut as nid de.
- <tɛkseria row dɛn = "3" ></tɛkseria>
Chɛkbɔks na fɔ pik wan ɔ sɔm opshɔn dɛn na wan list we redio dɛn na fɔ pik wan opshɔn frɔm bɔku pan dɛn.
- <lɛbul klas = "chɛkbɔks" >
- <input tayp = "chɛkbɔks" valyu = "" >
- Opshɔn wan na dis ɛn dat—mek shɔ se yu put wetin mek i fayn
- </label> fɔ di wan dɛn we de
- <lɛbul klas = "redio" >
- <input tayp = "redio" nem = "opshɔnRedio" id = "opshɔnRedio1" valyu = "opshɔn1" chɛk >
- Opshɔn wan na dis ɛn dat—mek shɔ se yu put wetin mek i fayn
- </label> fɔ di wan dɛn we de
- <lɛbul klas = "redio" >
- <input tayp = "redio" nem = "opshɔn dɛnRedio dɛn" id = "opshɔn dɛnRedio dɛn2" valyu = "opshɔn2" >
- Opshɔn tu kin bi ɔda tin ɛn we yu pik am i go pul opshɔn wan
- </label> fɔ di wan dɛn we de
Ad di .inline
klas to wan siriɔs chɛkbɔks ɔ redio fɔ mek di kɔntrol dɛn apia na di sem layn.
- <lɛbul klas = "chɛkbɔks inlayn" >
- <input tayp = "chɛkbɔks" id = "inlaynChɛkbɔks1" valyu = "opshɔn1" > 1
- </label> fɔ di wan dɛn we de
- <lɛbul klas = "chɛkbɔks inlayn" >
- <input tayp = "chɛkbɔks" id = "inlaynChɛkbɔks2" valyu = "opshɔn2" > 2
- </label> fɔ di wan dɛn we de
- <lɛbul klas = "chɛkbɔks inlayn" >
- <input tayp = "chɛkbɔks" id = "inlaynChɛkbɔks3" valyu = "opshɔn3" > 3
- </label> fɔ di wan dɛn we de
Yuz di difɔlt opshɔn ɔ spɛsifa a multiple="multiple"
fɔ sho bɔku opshɔn dɛn wan tɛm.
- <sɛlekt>
- <opshɔn> 1 </opshɔn>
- <opshɔn> 2 </opshɔn>
- <opshɔn> 3 </opshɔn>
- <opshɔn> 4 </opshɔn>
- <opshɔn> 5 </opshɔn>
- </sɛlekt>
- <sɛlekt bɔku bɔku = "bɔku bɔku" >
- <opshɔn> 1 </opshɔn>
- <opshɔn> 2 </opshɔn>
- <opshɔn> 3 </opshɔn>
- <opshɔn> 4 </opshɔn>
- <opshɔn> 5 </opshɔn>
- </sɛlekt>
Ad pan di brawza kɔntrol dɛn we dɔn de, Bootstrap gɛt ɔda yusful fɔm kɔmpɔnɛnt dɛn.
Ad tɛks ɔ bɔtin dɛn bifo ɔ afta ɛnitin we dɛn rayt wit tɛks. Du notis se select
dɛn nɔ de sɔpɔt ɛlimɛnt dɛn ya.
Rap an .add-on
ɛn an input
wit wan pan tu klas dɛn fɔ pripɛnd ɔ ad tɛks to wan input.
- <div klas = "input-prɛpɛnd" >
- <span klas = "ad-ɔn" > @ </span>
- <input klas = "span2" id = "prependedInput" tayp = "tɛks" pleshɔlda = "Yuznem" >
- </div> fɔ di wan dɛn we de
- <div klas = "input-apɛnd" >
- <input klas = "span2" id = "apendInput" tayp = "tɛks" >
- <span klas = "ad-ɔn" > .00 </span>
- </div> fɔ di wan dɛn we de
Yuz ɔl tu di klas dɛn ɛn tu instans dɛn fɔ .add-on
fɔ pripɛnd ɛn ad wan input.
- <div klas = "input-prɛpɛnd input-apɛnd" >
- <span klas = "ad-ɔn" > $ </span>
- <input klas = "span2" id = "apɛndPrɛpɛndInput" tayp = "tɛks" >
- <span klas = "ad-ɔn" > .00 </span>
- </div> fɔ di wan dɛn we de
Insted of a <span>
wit tɛks, yuz a .btn
fɔ ataya wan bɔtin (ɔ tu) to wan input.
- <div klas = "input-apɛnd" >
- <input klas = "span2" id = "apɛndInputBɔtin" tayp = "tɛks" >
- <bɔtin klas = "btn" tayp = "bɔt" > Go! </bɔtin>
- </div> fɔ di wan dɛn we de
- <div klas = "input-apɛnd" >
- <input klas = "span2" id = "apɛndInputBɔtin dɛn" tayp = "tɛks" >
- <bɔtin klas = "btn" tayp = "bɔtin" > Sɔch </bɔtin>
- <bɔtin klas = "btn" tayp = "bɔt" > Opshɔn dɛn </bɔtin>
- </div> fɔ di wan dɛn we de
- <div klas = "input-apɛnd" >
- <input klas = "span2" id = "apɛndDrɔpdɔwnBɔtin" tayp = "tɛks" >
- <div klas = "btn-grup" >
- <bɔtin klas = "btn drɔpdɔwn-tɔgl" data-tɔgl = "drɔpdɔwn" >
- Du
- <span klas = "kɛrɛt" ></span>
- </bɔtin>
- <ul klas = "drɔpdɔwn-mɛnyu" >
- ...
- </ul> fɔ di wan dɛn we de
- </div> fɔ di wan dɛn we de
- </div> fɔ di wan dɛn we de
- <div klas = "input-prɛpɛnd" >
- <div klas = "btn-grup" >
- <bɔtin klas = "btn drɔpdɔwn-tɔgl" data-tɔgl = "drɔpdɔwn" >
- Du
- <span klas = "kɛrɛt" ></span>
- </bɔtin>
- <ul klas = "drɔpdɔwn-mɛnyu" >
- ...
- </ul> fɔ di wan dɛn we de
- </div> fɔ di wan dɛn we de
- <input klas = "span2" id = "prɛpendedDrɔpdɔwnBɔtin" tayp = "tɛks" >
- </div> fɔ di wan dɛn we de
- <div klas = "input-prɛpɛnd input-apɛnd" >
- <div klas = "btn-grup" >
- <bɔtin klas = "btn drɔpdɔwn-tɔgl" data-tɔgl = "drɔpdɔwn" >
- Du
- <span klas = "kɛrɛt" ></span>
- </bɔtin>
- <ul klas = "drɔpdɔwn-mɛnyu" >
- ...
- </ul> fɔ di wan dɛn we de
- </div> fɔ di wan dɛn we de
- <input klas = "span2" id = "apendPrependedDropdownButton" tayp = "tɛks" >
- <div klas = "btn-grup" >
- <bɔtin klas = "btn drɔpdɔwn-tɔgl" data-tɔgl = "drɔpdɔwn" >
- Du
- <span klas = "kɛrɛt" ></span>
- </bɔtin>
- <ul klas = "drɔpdɔwn-mɛnyu" >
- ...
- </ul> fɔ di wan dɛn we de
- </div> fɔ di wan dɛn we de
- </div> fɔ di wan dɛn we de
- <fɔm>
- <div klas = "input-prɛpɛnd" >
- <div klas = "btn-grup" > ... </div>
- <input tayp = "tɛks" >
- </div> fɔ di wan dɛn we de
- <div klas = "input-apɛnd" >
- <input tayp = "tɛks" >
- <div klas = "btn-grup" > ... </div>
- </div> fɔ di wan dɛn we de
- </fɔm>
- <fɔm klas = "fɔm-sɔch" >
- <div klas = "input-apɛnd" >
- <input tayp = "tɛks" klas = "span2 sɔch-kwɛstyɔn" >
- <bɔtin tayp = "sɔbmit" klas = "btn" > Sɔch </bɔtin>
- </div> fɔ di wan dɛn we de
- <div klas = "input-prɛpɛnd" >
- <bɔtin tayp = "sɔbmit" klas = "btn" > Sɔch </bɔtin>
- <input tayp = "tɛks" klas = "span2 sɔch-kwɛstyɔn" >
- </div> fɔ di wan dɛn we de
- </fɔm>
Yuz rilitiv saiz klas dɛn lɛk .input-large
ɔ mach yu input dɛn to di grid kɔlɔm saiz dɛn we de yuz .span*
klas dɛn.
Mek ɛni <input>
ɔ <textarea>
ɛlimɛnt biev lɛk blɔk lɛvɛl ɛlimɛnt.
- <input klas = "input-blɔk-lɛvɛl" tayp = "tɛks" pleshɔlda = ".input-blɔk-lɛvɛl" >
- <input klas = "input-mini" tayp = "tɛks" pleshɔlda = ".input-mini" >
- <input klas = "input-smɔl" tayp = "tɛks" pleshɔlda = ".input-smɔl" >
- <input klas = "input-mɛdiɔm" tayp = "tɛks" pleshɔlda = ".input-mɛdiɔm" >
- <input klas = "input-big" tayp = "tɛks" pleshɔlda = ".input-big" >
- <input klas = "input-xlarge" tayp = "tɛks" pleshɔlda = ".input-xlarge" >
- <input klas = "input-xxbig" tayp = "tɛks" pleshɔlda = ".input-xxbig" >
Hed dɛn de ɔp!Insay di fiuja vɛshɔn dɛn, wi go de chenj di we aw dɛn de yuz dɛn rilitiv input klas dɛn ya fɔ mek dɛn mach wi bɔtin saiz dɛn. Fɔ ɛgzampul, .input-large
go mek di padding ɛn font-sayz fɔ wan input go ɔp.
Yuz .span1
to .span12
fɔ input dɛn we de mach di sem saiz dɛn fɔ di grid kɔlɔm dɛn.
- <input klas = "span1" tayp = "tɛks" pleshɔlda = ".span1" >
- <input klas = "span2" tayp = "tɛks" pleshɔlda = ".span2" >
- <input klas = "span3" tayp = "tɛks" pleshɔlda = ".span3" >
- <sɛlekt klas = "span1" >
- ...
- </sɛlekt>
- <sɛlekt klas = "span2" >
- ...
- </sɛlekt>
- <sɛlekt klas = "span3" >
- ...
- </sɛlekt>
Fɔ bɔku grid input dɛn fɔ wan layn, yuz di .controls-row
modifya klas fɔ di rayt spɛshal . I de flot di input dɛn fɔ kɔlaps wayt-spɛs, sɛt di rayt margin dɛn, ɛn klia di flot.
- <div klas = "kɔntrol dɛn" >
- <input klas = "span5" tayp = "tɛks" pleshɔlda = ".span5" >
- </div> fɔ di wan dɛn we de
- <div klas = "kɔntrol kɔntrol-rɔw" >
- <input klas = "span4" tayp = "tɛks" pleshɔlda = ".span4" >
- <input klas = "span1" tayp = "tɛks" pleshɔlda = ".span1" >
- </div> fɔ di wan dɛn we de
- ...
Prɛzɛnt data insay wan fɔm we nɔ go ɛdit we yu nɔ yuz aktual fɔm mak.
- <span klas = "input-xlarge uneditable-input" > Sɔm valyu ya </span>
Ɛnd wan fɔm wit wan grup fɔ akshɔn dɛn (bɔtin dɛn). We dɛn put am insay wan .form-actions
, di bɔtin dɛn go ɔtomɛtik indent fɔ layn wit di fɔm kɔntrol dɛn.
- <div klas = "fɔm-akshɔn dɛn" >
- <bɔtin tayp = "sɔbmit" klas = "btn btn-praymari" > Sev chenj dɛn </bɔtin>
- <bɔtin tayp = "bɔtin" klas = "btn" > Kansel </bɔtin>
- </div> fɔ di wan dɛn we de
Inlayn ɛn blɔk lɛvɛl sɔpɔt fɔ ɛp tɛks we de apia rawnd fɔm kɔntrol dɛn.
- <input tayp = "tɛks" ><span klas = "ɛp-inlayn" > Inlayn ɛp tɛks </span>
- <input type = "text" ><span class = "help-block" > Wan lɔng blɔk fɔ ɛp tɛks we de brok pan nyu layn ɛn kin go bifo wan layn. </span> fɔ di wan dɛn we de
Gi fidbak to di wan dɛn we de yuz am ɔ di wan dɛn we de kam fɛn dɛn wit di bɛsis fidbak stet dɛn bɔt di fɔm kɔntrol ɛn di lɛbl dɛn.
Wi de pul di difɔlt outline
stayl dɛn na sɔm fɔm kɔntrol dɛn ɛn aplay a box-shadow
insay in ples fɔ :focus
.
- <input klas = "input-xlarge" id = "fokusInput" tayp = "tɛks" valyu = "Dis na fɔs..." >
Stayl input dɛn via difɔlt brawza funkshɔnaliti wit :invalid
. Spɛsify a type
, ad di required
atribyut if di fil nɔto opshɔnal, ɛn (if i apɔynt) spɛsifa wan pattern
.
Dis nɔ de insay di vɛshɔn dɛn fɔ Intanɛt Ɛksplɔrɔ 7-9 bikɔs dɛn nɔ gɛt sɔpɔt fɔ CSS pseudo sɛlɛktɔ dɛn.
- <input klas = "span3" tayp = "imel" nid fɔ de >
Ad di disabled
atribyut pan wan input fɔ mek di yuza nɔ input ɛn trig wan smɔl difrɛn luk.
- <input klas = "input-xlarge" id = "disabledInput" tayp = "tɛks" pleshɔlda = "Disabled input ya..." disabled >
Bootstrap inklud validɛshɔn stayl fɔ mistek, wɔnin, infɔmeshɔn, ɛn sakrifays mɛsej dɛn. Fɔ yuz, ad di klas we fit to di tin dɛn we de rawnd .control-group
.
- <div klas = "kɔntrol-grup wɔnin" >
- <lebul klas = "kɔntrol-lɛbul" fɔ = "inputWarning" > Input wit wɔnin </label>
- <div klas = "kɔntrol dɛn" >
- <input tayp = "tɛks" id = "inputWɔnin" >
- <span class = "help-inline" > Sɔntin kin dɔn go rɔng </span>
- </div> fɔ di wan dɛn we de
- </div> fɔ di wan dɛn we de
- <div klas = "kɔntrol-grup mistek" >
- <lebul klas = "kɔntrol-lɛbul" fɔ = "inputError" > Input wit mistek </label>
- <div klas = "kɔntrol dɛn" >
- <input tayp = "tɛks" id = "inputErɔd" >
- <span class = "help-inline" > Duya kɔrɛkt di mistek </span>
- </div> fɔ di wan dɛn we de
- </div> fɔ di wan dɛn we de
- <div klas = "kɔntrol-grup info" >
- <lɛbul klas = "kɔntrol-lɛbul" fɔ = "inputInfo" > Input wit infɔmeshɔn </label>
- <div klas = "kɔntrol dɛn" >
- <input tayp = "tɛks" id = "inputInfo" >
- <span class = "help-inline" > Yuz nem dɔn ɔlrɛdi tek </span>
- </div> fɔ di wan dɛn we de
- </div> fɔ di wan dɛn we de
- <div klas = "kɔntrol-grup sakses" >
- <lebul klas = "kɔntrol-lɛbul" fɔ = "inputSukses" > Input wit sakses </label>
- <div klas = "kɔntrol dɛn" >
- <input tayp = "tɛks" id = "inputSakses" >
- <span klas = "ɛp-inlayn" > Woohoo! </span> fɔ di wan dɛn we de
- </div> fɔ di wan dɛn we de
- </div> fɔ di wan dɛn we de
Ad klas dɛn to wan <img>
ɛlimɛnt fɔ mek i izi fɔ stayl pikchɔ dɛn na ɛni prɔjek.
- <img src = "..." klas = "img-raun" >
- <img src = "..." klas = "img-sɛklɔ" >
- <img src = "..." klas = "img-polaroyd" >
Hed dɛn de ɔp! .img-rounded
ɛn .img-circle
nɔ de wok na IE7-8 bikɔs dɛn nɔ gɛt border-radius
sɔpɔt.
140 aykɔn dɛn we de insay sprite fɔm, we de insay dak grey (difɔlt) ɛn wayt, we Glyphicons gi .
Glyphicons Halflings nɔmal wan nɔ de fɔ fri, bɔt wan arenjmɛnt bitwin Bootstrap ɛn di Glyphicons krieta dɛn dɔn mek dis pɔsibul we nɔ gɛt ɛni kɔst fɔ yu as divɛlɔpa dɛn. As tɛnki, wi de aks yu fɔ put wan opshɔnal link bak to Glyphicons ɛnitɛm we i prɛktikal.
Ɔl di aykɔn dɛn nid fɔ gɛt <i>
tɛg we gɛt wan patikyula klas, we dɛn put fɔs wit icon-
. Fɔ yuz am, put di kɔd we de dɔŋ ya jɔs lɛk ɛnisay:
- <i klas = "aykɔn-sɔch" </i>
Stayl dɛn de bak fɔ invayt (wayt) aykɔn dɛn, we dɛn mek rɛdi wit wan ɛkstra klas. Wi go spɛshal ɛnfɔs dis klas pan hova ɛn aktif stet fɔ nav ɛn drɔpdɔwn link dɛn.
- <i klas = "aykɔn-sɔch aykɔn-wayt" ></i>
Hed dɛn de ɔp!We yu de yuz nia string dɛn we gɛt tɛks, lɛk bɔtin ɔ nav link dɛn, mek shɔ se yu lɛf ples afta di <i>
tɛg fɔ mek yu ebul fɔ spes fayn fayn wan.
Yuz dɛn na bɔtin dɛn, bɔtin grup dɛn fɔ wan tulba, nevigishɔn, ɔ fɔm input dɛn we dɛn dɔn pripend.
- <div klas = "btn-tulba" >
- <div klas = "btn-grup" >
- <a klas = "btn" href = "#" ><i klas = "aykɔn-alayn-lɛft" ></i></a>
- <a klas = "btn" href = "#" ><i klas = "aykɔn-alayn-sɛnta" ></i></a>
- <a klas = "btn" href = "#" ><i klas = "aykɔn-alayn-rayt" ></i></a>
- <a klas = "btn" href = "#" ><i klas = "aykɔn-alayn-jɔstifay" ></i></a>
- </div> fɔ di wan dɛn we de
- </div> fɔ di wan dɛn we de
- <div klas = "btn-grup" >
- <a klas = "btn btn-praymari" href = "#" ><i klas = "aykɔn-yuz aykɔn-wayt" ></i> Yuz </a>
- <a klas = "btn btn-praymari drɔpdɔwn-tɔgl" data-tɔgl = "drɔpdɔwn" href = "#" ><span klas = "kɛret" ></span></a>
- <ul klas = "drɔpdɔwn-mɛnyu" >
- <li><a href = "#" ><i klas = "aykɔn-pensil" </i> Ɛdit </a></li>
- <li><a href = "#" ><i klas = "aykɔn-trash" </i> Dilit </a></li>
- <li><a href = "#" ><i klas = "aykɔn-ban-sɛklɔ" ></i> Ban </a></li>
- <li klas = "divayda" </li>
- <li><a href = "#" ><i klas = "a" </i> Mek admin </a></li>
- </ul> fɔ di wan dɛn we de
- </div> fɔ di wan dɛn we de
- <a klas = "btn btn-big" href = "#" ><i klas = "aykɔn-sta" ></i> Sta </a>
- <a klas = "btn btn-smɔl" href = "#" ><i klas = "aykɔn-sta" ></i> Sta </a>
- <a klas = "btn btn-mini" href = "#" ><i klas = "aykɔn-sta" ></i> Sta </a>
- <ul klas = "nav nav-list" >
- <li klas = "aktiv" ><a href = "#" ><i klas = "aykɔn-os aykɔn-wayt" </i> Os </a></li>
- <li><a href = "#" ><i klas = "aykɔn-buk" </i> Laybri </a></li>
- <li><a href = "#" ><i klas = "aykɔn-pensil" </i> Aplikeshɔn dɛn </a></li>
- <li><a href = "#" ><i klas = "a" </i> Mis </a></li>
- </ul> fɔ di wan dɛn we de
- <div klas = "kɔntrol-grup" >
- <lebul klas = "kɔntrol-lɛbul" fɔ = "inputIcon" > Imel adrɛs </label>
- <div klas = "kɔntrol dɛn" >
- <div klas = "input-prɛpɛnd" >
- <span klas = "ad-ɔn" ><i klas = "aykɔn-ɛnvɔlɔp" ></i></span>
- <input klas = "span2" id = "inputIkɔn" tayp = "tɛks" >
- </div> fɔ di wan dɛn we de
- </div> fɔ di wan dɛn we de
- </div> fɔ di wan dɛn we de