Qodobbada HTML ee aasaasiga ah ayaa lagu qaabeeyey laguna xoojiyay fasallo la fidin karo.
Dhammaan cinwaannada HTML, <h1>
iyada oo loo marayo <h6>
waa la heli karaa.
Bootstrap's default default font-size
waa 14px , oo line-height
leh 20px . Tani waxay khusaysaa <body>
dhammaan cutubyada. Intaa waxaa dheer, <p>
(paragraphs) waxay helayaan meel hoose oo kala bar ah dhererkooda xariiqda (10px sida caadiga ah).
Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus iyo magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies baabuurta.
Cum sociis natoque penatibus iyo 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 un mi porta gravida iyo eget metus. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.
<p> ... </p>
Ka dhig cutubka mid taagan adiga oo ku daraya .lead
.
Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor actor. Duis mollis, est non commodo luctus.
<p class = "lead" > ... </p>
Miisaanka qoraalku wuxuu ku salaysan yahay laba doorsoome oo YAR oo doorsoomayaal ah . yar : @baseFontSize
iyo @baseLineHeight
. Midka koowaad waa cabbirka font-saldhigga ee la isticmaalo oo dhan kan labaadna waa dhererka xarriiqda saldhigga. Waxaan isticmaalnaa doorsoomayaashaas iyo xisaab fudud si aan u abuurno xad-dhaafka, suufka, iyo dhererka xariiqyada nooceena oo dhan iyo in ka badan. Habee iyaga oo Bootstrap la qabsiga
Isticmaal calaamadaha xoogga saara ee HTML oo leh qaabab khafiif ah.
<small>
Si aad u joojiso xoojinta laynka ama baloogyada qoraalka, isticmaal summada yar.
Sadar qoraalkan waxaa loola jeedaa in loola dhaqmo sidii far wanaagsan.
<p> <small> Sadar qoraalkan waxa loola jeedaa in loola dhaqmo sidii far wanaagsan. </small> </p>
Si aad xoogga u saarto qayb qoraal ah oo miisaankeedu ka culus yahay.
Qaybtan soo socota ee qoraalka waxa loo tarjumay qoraal geesinimo leh .
<strong> oo loo turjumay qoraal geesinimo leh </strong>
Si aad xoogga u saarto qayb yar oo qoraal ah oo leh fartaag.
Qaybtan soo socota ee qoraalka waxa loo turjumay sidii qoraal farta lagu fiiqay .
<em> oo loo turjumay sida qoraal farta lagu fiiqay </em>
Madaxa kor u qaad!Dareen xor u ah isticmaalka <b>
iyo <i>
HTML5. <b>
waxaa loola jeedaa in lagu muujiyo ereyada ama odhaahyada iyada oo aan la gudbin muhiimad dheeraad ah halka <i>
ay u badan tahay cod, ereyo farsamo, iwm.
Si fudud qoraalka ugu toosi qaybaha leh fasalada toosinta qoraalka.
Qoraalka bidix ku toosan.
Qoraalka dhexda toosan.
Qoraal toosan.
- <p class = "text-left" > Qoraalka bidix ku toosan. </p>
- <p class = "text-center" > Qoraalka dhexda toosan. </p>
- <p class = "text-right" > Qoraal toosan. </p>
U gudbi macnaha midab leh oo muggeed oo xooga saaraya fasalada utility.
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 = "la aamusay" > Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh. </p>
- <p class = "digniin qoraal ah" > 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-guul" > Duis mollis, est non commodo luctus, nisi erat porttitor ligula. </p>
Hirgelinta habaysan ee curiyaha HTML ee <abbr>
soo gaabinta iyo gaabinnada si loo muujiyo nooca la fidiyay ee dul heehaabaya. Soo gaabinta sifada leh title
ayaa leh xudduud hoose oo dhibco khafiif ah iyo calaamad caawimo dul heehaabaysa, taasoo bixisa macnaha dheeraadka ah ee dul heehaabaya.
<abbr>
Qoraalka la balaariyay ee duleel dheer ee soo gaabinta, ku dar title
sifada.
Soo gaabinta ereyga sifo waa attr .
<abbr title = "sifo" > attr </abbr>
<abbr class="initialism">
Ku dar .initialism
soo gaabinta cabbirka farta wax yar ka yar.
HTML waa waxa ugu wanaagsan tan iyo rootiga la jarjaray.
<abbr title = "HyperText Markup Language" class = "initialism" > HTML </abbr>
U soo bandhig macluumaadka xiriirka awoowaha kuugu dhow ama dhammaan shaqada oo dhan.
<address>
Ku ilaali qaabaynta adiga oo ku dhameeya dhammaan sadarrada <br>
.
- <cinwaan>
- <strong> Twitter, Inc. </strong><br>
- 795 Folsom Ave, Suite 600 <br>
- San Francisco, CA 94107 <br>
- <abbr title = "Telefoon" > P: </abbr> (123) 456-7890
- </ address>
- <cinwaan>
- <strong> Magaca buuxa </strong><br>
- <a href = "mailto:#" > [email protected] </a>
- </ address>
Si aad u soo xiganayso blocks of content ka il kale oo ka mid ah dukumeentigaaga.
Ku duub HTML<blockquote>
kasta sida xigashada. Xigashooyinka tooska ah waxaan kugula talineynaa a .<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer-ka ayaa si toos ah u eegaya.
- <blockquote>
- <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer-ka ayaa si xun u saameeya. </p>
- </blockquote>
Qaabka iyo nuxurka ayaa isbeddela ee kala duwanaanshiyaha fudud ee blockquote caadiga ah.
Ku dar <small>
sumad si aad u aqoonsato isha. Ku duub magaca isha shaqada <cite>
.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer-ka ayaa si toos ah u eegaya.
Qof caan ku ah Ciwaanka Isha
- <blockquote>
- <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer-ka ayaa si xun u saameeya. </p>
- <small> Qof caan ah <cite title = "Cwaanka Isha" > Ciwaanka isha </cite></small>
- </blockquote>
U isticmaal .pull-right
sabbaynaysa, oo toosan blockquote.
- <blockquote class = "jiid-right" >
- ...
- </blockquote>
Liiska walxaha aanu amarku si cad u khusayn.
- <ul>
- <li> ... </li>
- </ul>
Liiska alaabta uu dalabku si cad u khuseeya.
- <ol>
- <li> ... </li>
- </ol>
Ka saar suufka caadiga ah list-style
iyo bidix ee shayada liiska (carruurta degdega ah kaliya).
- <ul class = "aan qaab lahayn" >
- <li> ... </li>
- </ul>
Geli dhammaan shayada liiska hal xariiq oo leh inline-block
suuf khafiif ah.
- <ul class = "line" >
- <li> ... </li>
- </ul>
Liiska ereyada leh sharraxaaddooda la xidhiidha.
- <dl>
- <dt> ... </dt>
- <dd> ... </dd>
- </dl>
U samee shuruudaha iyo sharraxaadaha <dl>
safka dhinac-dhinac ah.
- <dl class = "dl-horizontal" >
- <dt> ... </dt>
- <dd> ... </dd>
- </dl>
Madaxa kor u qaad!Liisaska sharraxaadda tooska ah waxay gooyn doonaan ereyada aad u dheer inay ku habboon yihiin hagaajinta tiirka bidix text-overflow
. Goobaha daawashada ee dhuuban, waxay u bedeli doonaan qaabka la isku dhejiyay ee caadiga ah.
Ku duub godadka koodka dhexda ah ee <code>
.
<section>
waa in lagu duuduubaa sida khadadka.
- Tusaale ahaan , <code> & lt ; qaybta & gt ;</ code > waa in lagu duuduubaa sida khad .
U isticmaal <pre>
khadadka koodka badan. Hubi inaad ka baxsato xagal kasta oo ku jira koodka si sax ah loo sameeyo.
<p> Tusaalaha qoraalka halkan...</p>
- <pre>
- <p> Tusaalaha qoraalka halkan...</p>
- </pre>
Madaxa kor u qaad!Hubi inaad ku hayso koodka <pre>
summada sida ugu dhow bidixda intii suurtogal ah; waxay soo saari doontaa dhammaan tabsyada.
Waxaad si ikhtiyaari ah ugu dari kartaa .pre-scrollable
fasalka dejin doona dhererka ugu badan ee 350px oo bixin doona y-axis-gaaban.
Habaynta aasaasiga ah — suufka iftiinka iyo kala qaybinta tooska ah - ku dar fasalka saldhiga .table
mid kasta <table>
.
# | Magaca koowaad | Magaca Dambe | Magaca isticmaale |
---|---|---|---|
1 | Calaamadee | Otto | @mdo |
2 | Yacquub | Thornton | @ buuran |
3 | Larry | Shimbirka |
- < class class = "miiska" >
- …
- </miiska>
Ku dar mid kasta oo ka mid ah fasallada soo socda fasalka .table
aasaasiga ah.
.table-striped
Wuxuu ku daraa xariijimo zebra saf kasta oo miiska dhexdiisa ah <tbody>
iyadoo la sii marinayo :nth-child
xulashada CSS (kuma jiraan IE7-8).
# | Magaca koowaad | Magaca Dambe | Magaca isticmaale |
---|---|---|---|
1 | Calaamadee | Otto | @mdo |
2 | Yacquub | Thornton | @ buuran |
3 | Larry | Shimbirka |
- < class class = " miis-xariif ah" >
- …
- </miiska>
.table-bordered
Ku dar soohdin iyo geeso wareegsan miiska.
# | Magaca koowaad | Magaca Dambe | Magaca isticmaale |
---|---|---|---|
1 | Calaamadee | Otto | @mdo |
Calaamadee | Otto | @getbootstrap | |
2 | Yacquub | Thornton | @ buuran |
3 | Larry the Bird |
- < class class = "miis xuduudeed" >
- …
- </miiska>
.table-hover
U ogolow gobolka dul heehaabaya safafka miiska gudaha a <tbody>
.
# | Magaca koowaad | Magaca Dambe | Magaca isticmaale |
---|---|---|---|
1 | Calaamadee | Otto | @mdo |
2 | Yacquub | Thornton | @ buuran |
3 | Larry the Bird |
- < class class = "miiska-kormeereedka" >
- …
- </miiska>
.table-condensed
Wuxuu ka dhigayaa miisaska kuwo is haysta isagoo kala badh u jaraya suufka unugga.
# | Magaca koowaad | Magaca Dambe | Magaca isticmaale |
---|---|---|---|
1 | Calaamadee | Otto | @mdo |
2 | Yacquub | Thornton | @ buuran |
3 | Larry the Bird |
- < class class = "miiska-koondensed" >
- …
- </miiska>
Isticmaal fasallada macnaha guud si aad u midabayso safafka miiska.
Fasalka | Sharaxaada |
---|---|
.success |
Waxay tuseysaa fal guul ah ama mid togan. |
.error |
Waxay muujinaysaa fal xun ama khatar ah. |
.warning |
Waxay muujinaysaa digniin u baahan in laga fiirsado. |
.info |
Loo isticmaalo beddelka qaababka caadiga ah. |
# | Alaabta | Lacag bixinta | Xaalada |
---|---|---|---|
1 | Qaaxada - bishiiba | 01/04/2012 | La ansixiyay |
2 | Qaaxada - bishiiba | 02/04/2012 | diiday |
3 | Qaaxada - bishiiba | 03/04/2012 | La sugayo |
4 | Qaaxada - bishiiba | 04/04/2012 | Soo wac si aad u xaqiijiso |
- ...
- < tr class = "guul" >
- <td> 1 < /td>
- <td>TB - Bishii</ td >
- <td> 01 / 04 / 2012 < /td>
- <td>la ogolaaday</ td >
- </ tr >
- ...
Liiska HTML miiska miiska la taageeray iyo sida ay tahay in loo isticmaalo.
Tag | Sharaxaada |
---|---|
<table> |
Cutubka duubista ee muujinta xogta qaab tabo ah |
<thead> |
Cunsurka weelka ee safafka madaxa miiska ( <tr> ) si loo calaamadiyo tiirarka miiska |
<tbody> |
Cunsurka weelka ee safafka miiska ( <tr> ) ee jidhka miiska |
<tr> |
Cunsurka weelka ee unugyada miiska ( <td> ama <th> ) ee ka muuqda hal saf |
<td> |
Unugga miiska caadiga ah |
<th> |
Unugga miiska gaarka ah ee tiirka (ama safka, iyadoo ku xidhan baaxadda iyo meelaynta) sumadaha |
<caption> |
Sharaxaadda ama soo koobidda waxa miiska u yaal, gaar ahaan faa'iido u leh akhristayaasha shaashadda |
- <miiska>
- <caption> ... </caption>
- <madaxa>
- <tr>
- <th> ... </th>
- <th> ... </th>
- </tr>
- </text>
- <tbody>
- <tr>
- <td> ... </td>
- <td> ... </td>
- </tr>
- </tbody>
- </miiska>
Koontaroolada foomka shakhsi ahaaneed waxay helayaan habayn, laakiin iyada oo aan loo baahnayn fasalka aasaasiga ah ee <form>
isbeddelada waaweyn ee calaamadaynta. Natiijooyinka ku xardhan, sumadaha bidix ku toosan ee dusha sare ee kontaroolada foomka.
- <form>
- <fieldset>
- Halyeey </ legend >
- <label> Magaca summada </label>
- <input type = "text" placeholder = "wax ku qor..." >
- <span class = "help-block" > Tusaalaha qoraalka caawinta heerka block. </span>
- < class calaamad = "checkbox" >
- <input type = "checkbox" > I hubi
- </label>
- <button type = "gudbi" class = "btn" > Gudbi </button>
- </fieldset>
- </form>
Waxaa ku jira Bootstrap saddex qaab oo ikhtiyaari ah oo loogu talagalay kiisaska isticmaalka caadiga ah.
Ku dar .form-search
foomka iyo .search-query
ka si aad <input>
u hesho qoraal dheeri ah oo wareegsan.
- < class form = "form-search" >
- <input type = "text" class = "input-medium search-query" >
- <button type = "submit" class = "btn" > Raadi </button>
- </form>
Ku dar .form-inline
summadaha bidix ku toosan iyo kontaroolada-inline-block ee qaabeynta is haysta.
- < class form = "form-inline" >
- <input type = "text" class = "input-small" placeholder = "Email" >
- <input type = "password" class = "input-small" meeleeyaha = "Password" >
- < class calaamad = "checkbox" >
- <input type = "checkbox" > I xasuuso
- </label>
- <button type = "submit" class = "btn" > Soo gal </button>
- </form>
Calaamadaha midig toosi oo u sabbayso bidixda si aad uga dhigto inay ka soo muuqdaan isla xariiqda kontaroolada. Waxay u baahan tahay isbeddelada calaamadaynta ugu badan ee qaabka caadiga ah:
.form-horizontal
foomka.control-group
.control-label
summada.controls
toosinta saxda ah
- < class form = "form-horizontal" >
- <div class = "koontarool-koox" >
- <label class = "control-label" ee = "inputEmail" > iimaylka </label>
- <div class = "koontaroolada" >
- <input type = "text" id = "inputEmail" placeholder = " Email" >
- </div>
- </div>
- <div class = "koontarool-koox" >
- <label class = "control-label" ee = "inputPassword" > Password </label>
- <div class = "koontaroolada" >
- <input type = "password" id = "inputPassword" meeleeyaha = " Password" >
- </div>
- </div>
- <div class = "koontarool-koox" >
- <div class = "koontaroolada" >
- < class calaamad = "checkbox" >
- <input type = "checkbox" > I xasuuso
- </label>
- <button type = "submit" class = "btn" > Soo gal </button>
- </div>
- </div>
- </form>
Tusaalooyinka kontaroolada qaabka caadiga ah ee lagu taageeray qaabaynta qaabka tusaalaha.
Kantaroolka foomka ugu caansan, meelaha wax gelinta ku salaysan. Waxa ku jira taageerada dhammaan noocyada HTML5: qoraalka, erayga sirta ah, wakhtiga taariikhda, taariikhda-maxali ah, taariikhda, bisha, wakhtiga, toddobaadka, lambarka, iimaylka, url, raadinta, tel, iyo midabka.
Wuxuu u baahan yahay isticmaalka cayiman type
mar kasta.
- < nooca wax-galka = "text" placeholder = "Text input" >
Kontoroolka foomka kaas oo taageera sadar badan oo qoraal ah. Beddel rows
sifada marka loo baahdo.
- <textarea rows = " 3" > </textarea>
Sanduuqyada hubinta waxaa loogu talagalay in lagu xusho hal ama dhowr ikhtiyaar oo liiska ku jira halka raadiyayaashu ay door ka yihiin hal doorasho oo badan.
- < class calaamad = "checkbox" >
- < nooca galitaanka = "checkbox" qiimaha = "" >
- Ikhtiyaarka koowaad waa kan iyo taas-hubi inaad ku darto sababta ay u weyn tahay
- </label>
- < class calaamad = "raadiyaha" >
- < nooc wax gelin ah = "raadiyaha" magaca = "optionsRadios" id = "optionsRadios1" qiimaha = "ikhtiyaarka1" la hubiyay >
- Ikhtiyaarka koowaad waa kan iyo taas-hubi inaad ku darto sababta ay u weyn tahay
- </label>
- < class calaamad = "raadiyaha" >
- < nooc wax gelin ah = "raadiyaha" magaca = "optionsRadios" id = "optionsRadios2" qiimaha = "opption2" >
- Doorashada labaad waxay noqon kartaa shay kale oo doorashadu waxay dooranaysaa ikhtiyaarka koowaad
- </label>
Ku dar .inline
fasalka taxane sanduuqyo ama raadiyowyo kontaroolo waxay ku muuqdaan isla xariiqda.
- < class calamada = "checkbox inline" >
- < nooc wax gelin ah = "checkbox" id = "inlineCheckbox1" qiimaha = "option1" > 1
- </label>
- < class calamada = "checkbox inline" >
- < nooc wax gelin ah = "checkbox" id = "inlineCheckbox2" qiimaha = "option2" > 2
- </label>
- < class calamada = "checkbox inline" >
- < nooc wax gelin ah = "checkbox" id = "inlineCheckbox3" qiimaha = "option3" > 3
- </label>
Isticmaal ikhtiyaarka caadiga ah ama cadee a multiple="multiple"
si aad u muujiso doorashooyin badan hal mar.
- <dooro>
- <ikhtiyaar> 1 </ikhtiyaarka>
- <ikhtiyaar> 2 </ikhtiyaarka>
- <ikhtiyaar> 3 </ikhtiyaarka>
- <ikhtiyaar> 4 </ikhtiyaarka>
- <ikhtiyaar> 5 </ikhtiyaarka>
- </select>
- <dooro badan = "badan" >
- <ikhtiyaar> 1 </ikhtiyaarka>
- <ikhtiyaar> 2 </ikhtiyaarka>
- <ikhtiyaar> 3 </ikhtiyaarka>
- <ikhtiyaar> 4 </ikhtiyaarka>
- <ikhtiyaar> 5 </ikhtiyaarka>
- </select>
Ku darista kontaroolada browserka ee jira, Bootstrap waxaa ku jira qaybo kale oo faa'iido leh.
Ku dar qoraal ama badhamada ka hor ama ka dib gelinta qoraalka ku salaysan. Ogow in select
canaasiirta aan halkan laga taageerin.
Ku duub mid .add-on
ka input
mid ah laba fasal si aad u diyaarisid ama ugu dhejiso qoraalka gelinta.
- <div class = "input-prepend" >
- <span class = "ad-on" > @ </span>
- < class input = "span2" id = "prependedInput" nooca = "text" meeleeyaha = "Magaca isticmaalaha" >
- </div>
- <div class = "Input-append" >
- < class input = "span2" id = "appendedInput " type = "text" >
- <span class = "ad-on" > .00 </span>
- </div>
Isticmaal labada fasal iyo laba tusaale oo ah .add-on
si aad u diyaarisid oo ugu dhejiso wax gelinta.
- <div class = "Input-prepend input-append" >
- <span class = "ad-on" > $ </span>
- < class input = "span2" id = "appendedPrependedInput " type = "text" >
- <span class = "ad-on" > .00 </span>
- </div>
Halkii aad ka qori <span>
lahayd qoraal, isticmaal a .btn
si aad badhan (ama laba) ugu dhejiso gelinta.
- <div class = "Input-append" >
- < class input = "span2" id = "appendedInputButton " type = "text" >
- <button class = "btn" type = "button" > Tag! </button>
- </div>
- <div class = "Input-append" >
- < class input = "span2" id = "appendedInputButtons " type = "text" >
- <button class = "btn" type = "button" > Raadi </button>
- <button class = "btn" type = "button" > Xulasho </button>
- </div>
- <div class = "Input-append" >
- < class input = "span2" id = "appendedDropdownButton " nooca = "text" >
- <div class = "btn-group" >
- <button class = "btn dropdown-toggle" data-toggle = "hoos u dhac" >
- Ficil
- <span class = "daryeel" </span>
- </button>
- <ul class = "Dropdown-menu" >
- ...
- </ul>
- </div>
- </div>
- <div class = "input-prepend" >
- <div class = "btn-group" >
- <button class = "btn dropdown-toggle" data-toggle = "hoos u dhac" >
- Ficil
- <span class = "daryeel" </span>
- </button>
- <ul class = "Dropdown-menu" >
- ...
- </ul>
- </div>
- < class input = "span2" id = "prependedDropdownButton" type = "text" >
- </div>
- <div class = "Input-prepend input-append" >
- <div class = "btn-group" >
- <button class = "btn dropdown-toggle" data-toggle = "hoos u dhac" >
- Ficil
- <span class = "daryeel" </span>
- </button>
- <ul class = "Dropdown-menu" >
- ...
- </ul>
- </div>
- < class input = "span2" id = "appendedPrependedDropdownButton " nooca = "qoraalka" >
- <div class = "btn-group" >
- <button class = "btn dropdown-toggle" data-toggle = "hoos u dhac" >
- Ficil
- <span class = "daryeel" </span>
- </button>
- <ul class = "Dropdown-menu" >
- ...
- </ul>
- </div>
- </div>
- <form>
- <div class = "input-prepend" >
- <div class = "btn-group" > ... </div>
- < nooca galitaanka = "qoraalka" >
- </div>
- <div class = "Input-append" >
- < nooca galitaanka = "qoraalka" >
- <div class = "btn-group" > ... </div>
- </div>
- </form>
- < class form = "form-search" >
- <div class = "Input-append" >
- <input type = "text" class = "span2 search-query" >
- <button type = "submit" class = "btn" > Raadi </button>
- </div>
- <div class = "input-prepend" >
- <button type = "submit" class = "btn" > Raadi </button>
- <input type = "text" class = "span2 search-query" >
- </div>
- </form>
Isticmaal fasalo qiyaaseed qaraabo ah sida .input-large
ama ku dhig gelintaada cabbirada tiirarka xajmiyeedka adoo isticmaalaya .span*
fasalo.
Ka dhig mid kasta <input>
ama <textarea>
curiye u dhaqmo sida curiyaha heerka block.
- < class -input = "input-block-level" type = "text" placeholder = ".input-block-level" >
- < class -input = "input-mini" type = "text" placeholder = ".input-mini" >
- < class -input = "input-small" type = "text" placeholder = ".input-small" >
- < class -input = "input-medium" type = "text" placeholder = ".input-medium" >
- < class -input = "input-large" type = "text" placeholder = ".input-large" >
- < class -input = "input-xlarge" type = "text" placeholder = ".input-xlarge" >
- < class class = "input-xxlarge" type = "text" placeholder = ".input-xxlarge" >
Madaxa kor u qaad!Noocyada mustaqbalka, waxaanu wax ka beddeli doonaa isticmaalka fasalladan soo-gelinta qaraabada ah si aan u dhigno cabbirrada badhanka. Tusaale ahaan, .input-large
waxay kordhin doontaa suufka iyo cabbirka farta wax gelinta.
U adeegso .span1
wax .span12
-soo-gelinta kuwaas oo ku habboon cabbirka tiirarka xajmiyeedka.
- < class input = "span1" type = "text" placeholder = ".span1" >
- < class input = "span2" type = "text" placeholder = ".span2" >
- < class input = "span3" type = "text" placeholder = ".span3" >
- < class = "span1" >
- ...
- </select>
- < class = "span2" >
- ...
- </select>
- < class = "span3" >
- ...
- </select>
Waxyaabo badan oo la geli karo xariiq kasta, isticmaal .controls-row
fasalka wax ka beddelka fogeynta habboon . Waxay sabbaynaysaa agabka si ay u burburto meel-cad, waxay dejisaa soohdimaha saxda ah, oo ay nadiifiso sabaynta.
- <div class = "koontaroolada" >
- < class input = "span5" type = "text" placeholder = ".span5" >
- </div>
- <div class = "koontaroolada-saafka" >
- < class input = "span4" type = "text" placeholder = ".span4" >
- < class input = "span1" type = "text" placeholder = ".span1" >
- </div>
- ...
U soo bandhig xogta qaab aan la tafatirin karin adiga oo aan isticmaalin foomka calaamadaynta dhabta ah.
- <span class = "input-xlarge uneditable-input" > Qiimaha qaar halkan </span>
Ku dhammee foom leh koox ficillo ah (buttons). Marka la geliyo gudaha a .form-actions
, badhamada si toos ah ayay u geli doonaan si ay ula socdaan kontaroolada foomka.
- <div class = "form-factions" >
- <button type = "gudbi" class = "btn btn-primary" > Keydi isbeddelada </button>
- <button type = "button" class = "btn" > Jooji </button>
- </div>
Inline iyo xannibaad heerka taageerada qoraalka caawinta ee ka muuqda agagaarka kontaroolada foomka.
- <input type = "text" ><span class = "help-inline" > Qoraalka caawinta khadka </span>
- <input type = "text" ><span class = "help-block" > Qoraal dheer oo caawinaad ah oo ku jaba xariiq cusub oo laga yaabo inuu dhaafo hal sadar. </span>
Sii jawaab celin isticmaalayaasha ama booqdayaasha leh gobolada jawaab celinta aasaasiga ah ee ku saabsan kontaroolada foomamka iyo sumadaha.
Waxaan meesha ka saarna outline
hababka caadiga ah ee kontaroolada foomamka oo aan box-shadow
ku dabaqno booskeeda :focus
.
- < class input = "input-xlarge" id = "focusedInput" nooca = "text" qiimaha = "Tani waxay diiradda saaraysaa..." >
Qaabka wax soo gelinta iyadoo la adeegsanayo browserka caadiga ah ee :invalid
. Sheeg a type
, ku dar required
sifada haddii goobta aysan ahayn mid ikhtiyaari ah, iyo (haddii ay khuseyso) sheeg a pattern
.
Tani lagama heli karo noocyada Internet Explorer 7-9 sababtoo ah taageero la'aanta xulashada CSS ee been abuurka ah.
- < class input = "span3" type = "email" loo baahan yahay >
Ku dar disabled
sifada wax gelinta si aad uga hortagto gelinta isticmaalaha oo aad kiciso muuqaal ka duwan.
- < class input = "input-xlarge" id = "disabledInput" nooca = "text" placeholder = "halkan wax ku gelinta naafo..." naafo >
Bootstrap waxaa ku jira qaababka ansaxinta qaladka, digniinta, macluumaadka, iyo fariimaha guusha. Si aad u isticmaasho, ku dar fasalka ku habboon agagaarka .control-group
.
- <div class = "digniin koox-koontarool" >
- <label class = "control-label" ee = "inputWarning" > Gelin digniin ah </label>
- <div class = "koontaroolada" >
- <input type = "text" id = "inputWarning" >
- <span class = "help-inline" > Waxaa laga yaabaa inay wax khaldameen </span>
- </div>
- </div>
- <div class = "xakamaynta-koox khalad ah" >
- <label class = "control-label" ee = "inputError" > Gelin qalad leh </label>
- <div class = "koontaroolada" >
- <input type = "text" id = "inputError" >
- <span class = "help-inline" > Fadlan sax qaladka </span>
- </div>
- </div>
- <div class = "xakamaynta-kooxda macluumaadka" >
- <label class = "control-label" ee = "inputInfo" > Gelin xog leh </label>
- <div class = "koontaroolada" >
- <input type = "text" id = "inputInfo" >
- <span class = "help-inline" > Magaca isticmaalaha waa la qaatay </span>
- </div>
- </div>
- <div class = "guusha kooxda xakamaynta" >
- <label class = "control-label" ee = "inputSuccess" > Gelin guul leh </label>
- <div class = "koontaroolada" >
- <input type = "text" id = "inputSuccess" >
- <span class = "help-inline" > Woohoo! </span>
- </div>
- </div>
Ku dar xiisado <img>
curiye si aad si fudud ugu qaabisid sawirada mashruuc kasta.
- <img src = "..." class = "img-rounded" >
- <img src = "..." class = "img-circle" >
- <img src = "..." fasalka = "img-polaroid" >
Madaxa kor u qaad! .img-rounded
oo .img-circle
ha ka shaqayn IE7-8 border-radius
taageero la'aan awgeed.
140 astaamood oo qaab sprite ah, oo lagu heli karo cawl madow (default) iyo caddaan, oo ay bixiso Glyphicons .
Glyphicons Halflings caadiyan bilaash laguma heli karo, laakiin qabanqaabada u dhaxaysa Bootstrap iyo hal-abuurayaasha Glyphicons ayaa tan ka dhigay wax kharash ah adiga horumariye ahaan. Mahadsanid ahaan, waxaan ku weydiineynaa inaad ku darto xiriiriyaha ikhtiyaariga ah ee dib loogu celinayo Glyphicons mar kasta oo la taaban karo.
Dhammaan calaamadaha waxay u baahan yihiin <i>
sumad leh fasal gaar ah, oo lagu horgaibay icon-
. Si aad u isticmaasho, dhig koodka soo socda meel kasta:
- <i class = "icon-search" ></i>
Waxa kale oo jira habab diyaar u ah calaamadaha rogan (caddaan), oo lagu diyaariyey hal fasal oo dheeraad ah. Waxaan si gaar ah u dhaqan galin doonaa fasalkan heehaabaynta iyo gobolada firfircoon ee isku xirka nav iyo dropdown.
- <i class = "icon-search icon-white" ></i>
Madaxa kor u qaad!Markaad isticmaalayso xadhkaha qoraalka, sida badhamada ama isku xidhka nav, hubi inaad ka tagto meel banaan ka dib <i>
sumadda si aad u kala fogaato.
U isticmaal badhamada, kooxaha badhanka si aad u heshid bar, navigation, ama foomka la sii diyaariyay.
- <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> Isticmaale </a>
- <a class = "btn btn-primary dropdown-toggle" data-toggle = "dropdown" href = "#" ><span class = "daryeel" ></span></a>
- <ul class = "Dropdown-menu" >
- <li><a href = "#" ><i class = "icon-pencil" ></i> Wax ka beddel </a> </li>
- <li><a href = "#" ><i class = "icon-trash" ></i> Tirtir </a></li>
- <li><a href = "#" ><i class = "icon-ban-circle" ></i> mamnuuc </a> </li>
- <li class = "qaybiye" </li>
- <li><a href = "#" ><i class = "i" ></i> Samee maamulka </a></li>
- </ul>
- </div>
- <a class = "btn btn-large" href = "#" ><i class = "icon-star" ></i> Xiddigta </a>
- <a class = "btn btn-small" href = "#" ><i class = "icon-star" ></i> Xiddigta </a>
- <a class = "btn btn-mini" href = "#" ><i class = "icon-star" ></i> Xiddigta </a>
- <ul class = "nav nav-list" >
- <li class = "active" ><a href = "#" ><i class = "icon-home icon-white" ></i> Guriga </a></li>
- <li><a href = "#" ><i class = "icon-book" ></i> Library </a></li>
- <li><a href = "#" ><i class = "icon-pencil" ></i> Codsiyada </a></li>
- <li><a href = "#" ><i class = "i" ></i> Kala duwan </a></li>
- </ul>
- <div class = "koontarool-koox" >
- <label class = "control-label" ee = "inputIcon" > Ciwaanka iimaylka </label>
- <div class = "koontaroolada" >
- <div class = "input-prepend" >
- <span class = "add-on" ><i class = "icon-bashqada" </i></span>
- < class input = "span2" id = "inputIcon" nooca = "qoraalka" >
- </div>
- </div>
- </div>