Ukuchwetheza
Amaxwebhu kunye nemizekelo ye-Bootstrap typography, kuquka iisetingi zehlabathi, izihloko, isicatshulwa somzimba, uluhlu, kunye nokunye.
Iisetingi zehlabathi
I-Bootstrap iseta umboniso osisiseko wehlabathi jikelele, ukuchwetheza, kunye nezimbo zekhonkco. Xa ulawulo olungakumbi lufuneka, khangela iiklasi eziluncedo zombhalo .
- Sebenzisa isitakhi sefonti yemveli ekhetha eyona ilungileyo
font-family
kwi-OS nganye kunye nesixhobo. - Ngohlobo lwesikali esibandakanyayo nesifikelelekayo , sithatha ingcambu engagqibekanga
font-size
yesikhangeli (eqhelekile ukuba yi-16px) ukuze abatyeleli bakwazi ukwenza ngokweemfuno zabo zebrawuza njengoko kufuneka. - Sebenzisa i-
$font-family-base
,$font-size-base
kunye$line-height-base
neempawu njengesiseko sethu sokuchwetheza sisetyenziswa kwi<body>
. - Cwangcisa umbala wekhonkco wehlabathi usebenzisa
$link-color
kwaye usebenzise ikhonkco elikrwelela kuphela kwi:hover
. - Sebenzisa
$body-bg
ukuseta ibackground-color
(<body>
ngokungagqibekanga#fff
).
Ezi ndlela zinokufumaneka ngaphakathi _reboot.scss
, kwaye iinguqu zehlabathi zichazwe kwi _variables.scss
. Qiniseka ukuba $font-size-base
uyayifaka rem
.
Izihloko
Zonke izihloko ze-HTML, <h1>
nge- <h6>
, ziyafumaneka.
Isihloko | Umzekelo |
---|---|
|
h1. Isihloko seBootstrap |
|
h2. Isihloko seBootstrap |
|
h3. Isihloko seBootstrap |
|
h4. Isihloko seBootstrap |
|
h5. Isihloko seBootstrap |
|
h6. Isihloko seBootstrap |
.h1
ngeeklasi zikwakhona .h6
, kuba xa ufuna ukuthelekisa isimbo somgca wesihloko kodwa awukwazi ukusebenzisa isiqalelo seHTML esinxulumeneyo.
h1. Isihloko seBootstrap
h2. Isihloko seBootstrap
h3. Isihloko seBootstrap
h4. Isihloko seBootstrap
h5. Isihloko seBootstrap
h6. Isihloko seBootstrap
Ukulungisa izihloko
Sebenzisa iiklasi eziluncedo ezibandakanyiweyo ukwenza kwakhona okubhaliweyo okuncinci okusesibini okubhaliweyo ukusuka kwiBootstrap 3.
Isihloko sedispleyi esefashonini Esinombhalo wesibini ofihlileyo
Bonisa izihloko
Iimpawu zentloko zemveli zenzelwe ukusebenza kakuhle kwinyama yomxholo wekhasi lakho. Xa ufuna isihloko ukuze ugqame, cinga ukusebenzisa isihloko esiboniswayo—isihloko esikhulu, esinoluvo oluthe kratya. Gcina ukhumbula ukuba ezi zihloko aziphenduli ngokungagqibekanga, kodwa kuyenzeka ukwenza ubungakanani befonti abaphendulayo .
Umboniso 1 |
Umboniso 2 |
Umboniso 3 |
Umboniso 4 |
Inkokeli
Yenza umhlathi ugqame ngokongeza .lead
.
Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.
Iimpawu zesicatshulwa esingaphakathi
Isimbo sezinto eziqhelekileyo ezingaphakathi kwe-HTML5.
Ungasebenzisa ithegi yamanqaku kuqaqambisaumbhalo.
Lo mgca wokubhaliweyo wenzelwe ukuphathwa njengombhalo ocinyiweyo.
Lo mgca wokubhaliweyo wenzelwe ukuba uthathwe njengongasachanekanga.
Lo mgca wokubhaliweyo wenzelwe ukuphathwa njengokongeza kuxwebhu.
Lo mgca wokubhaliweyo uya kwenza njengoko ukrwelelwe umgca ngaphantsi
Lo mgca wokubhaliweyo wenzelwe ukuphathwa njengoshicilelo oluhle.
Lo mgca unikezelwe njengombhalo ongqindilili.
Lo mgca unikezelwe njengombhalo okekeleyo.
.mark
kwaye .small
iiklasi zikwakhona ukusebenzisa izimbo ezifanayo <mark>
kwaye <small>
ngelixa unqanda naziphi iimpembelelo zesemantic ezingafunekiyo ezinokuthi ziziswe ziithegi.
Ngelixa ungaboniswanga ngasentla, zive ukhululekile ukusebenzisa <b>
nakwi <i>
-HTML5. <b>
yenzelwe ukuqaqambisa amagama okanye amabinzana ngaphandle kokudlulisela ukubaluleka okongeziweyo ngelixa <i>
ubukhulu becala iselizwi, amagama obugcisa, njl.
Izixhobo ezibhaliweyo
Guqula ulungelelwaniso lombhalo, uguqule, isitayile, ubunzima, kunye nombala ngezixhobo zethu zokubhaliweyo kunye nezixhobo zombala .
Ushunqulelo
Uzalisekiso olucwangcisiweyo lwesiqalelo se-HTML <abbr>
kwizifinyezo kunye nee-akhronimi ukubonisa uguqulelo olwandisiweyo kwi-hover. Izishunqulelo zinomgca ngaphantsi kwaye zifumane ikhesa yoncedo ukubonelela ngemeko eyongezelelweyo kwi-hover nakubasebenzisi boncedo lobuchwepheshe.
Yongeza .initialism
kwisifinyezo sefonti encinci kancinane.
attr
HTML
Iingcaphuno zebhloko
Ukucaphula iibhloko zomxholo komnye umthombo ngaphakathi koxwebhu lwakho. Gquba <blockquote class="blockquote">
malunga nayo nayiphi na i- HTML njengesicatshulwa.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. I-integer posuere erat ante.
Ukuchaza umthombo
Yongeza u-a <footer class="blockquote-footer">
ukuze uchonge umthombo. Gquba igama lomthombo womsebenzi kwi <cite>
.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. I-integer posuere erat ante.
Ulungelelwaniso
Sebenzisa izinto eziluncedo zokubhaliweyo njengoko kufuneka ukutshintsha ulungelelwaniso lwebhloko yakho.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. I-integer posuere erat ante.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. I-integer posuere erat ante.
Uluhlu
Ayifakwanga isimbo
Susa umda ongagqibekanga list-style
kunye nowasekhohlo kwizinto zoluhlu (abantwana bangoku kuphela). Oku kusebenza kuphela kwizinto zoluhlu lwabantwana olukhawulezileyo , okuthetha ukuba kuya kufuneka wongeze iklasi kulo naluphi na uluhlu olubekwe kwindlwane ngokunjalo.
- Lorem ipsum dolor sit amet
- Consectetur adipiscing elit
- Integer molestie lorem kunye ne-massa
- I-Facilisis kwi-pretium nisl aliquet
- Nulla volutpat aliquam velit
- Phasellus iaculis neque
- I-Purus sodales ultricies
- Vestibulum laoreet porttitor sem
- Ac tristique libero volutpat at
- I-Faucibus porta lacus fringilla vel
- Aenean sit amet erat nunc
- Eget porttitor lorem
Nomgca
Susa iibhulethi zoluhlu kwaye usebenzise ukukhanya margin
kunye nendibaniselwano yeeklasi ezimbini, .list-inline
kunye .list-inline-item
.
- Lorem ipsum
- Phasellus iaculis
- Nulla volutpat
Ulungelelwaniso loluhlu lwenkcazelo
Lungelelanisa imigaqo kunye neenkcazo ngokuthe tye ngokusebenzisa iiklasi ezichazwe kwangaphambili zesixokelelwano sethu (okanye imixube ye-semantic). Kwimigaqo emide, ungakhetha ukongeza .text-truncate
iklasi ukucutha okubhaliweyo ngeellipsis.
- Uluhlu lweenkcazelo
- Uluhlu lwenkcazo lufanelekile ukuchaza amagama.
- Euismod
-
Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.
Donec id elit non mi porta gravida at eget metus.
- Malesuada porta
- Etiam porta sem malesuada magna mollis euismod.
- Ixesha elifinyeziweyo liyanqunyulwa
- Fusce dapibus, tellus ac cursus commodo, tor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
- Ukuzalela
-
- Uluhlu lweenkcazo ezifakwe kwindlwane
- Aenean posuere, tortor sed cursus feugiat, nunc augue blandit nunc.
Ubungakanani befonti abaphendulayo
Iinqanawa zeBootstrap v4.3 ezinokhetho lokuvumela ubungakanani befonti ephendulayo, ivumela okubhaliweyo ukuba kukhule ngokwendalo kwisixhobo kunye nobukhulu bendawo yokujonga. I-RFS inokwenziwa ngokutshintsha ukwahluka kwe- $enable-responsive-font-sizes
Sass ukuya true
kunye nokuphinda ubuyise i-Bootstrap.
Ukuxhasa i- RFS , sisebenzisa i-Sass mixin ukubuyisela font-size
iipropati zethu eziqhelekileyo. Ubungakanani befonti abaphendulayo buya kudityaniswa bube calc()
yimisebenzi rem
exubeneyo kunye neeyunithi zokujonga ukwenza indlela yokuziphatha yokusabela yokulinganisa. Okunye malunga ne- RFS kunye noqwalaselo lwayo lunokufumaneka kwindawo yokugcina ye- GitHub .