Ukuchwetheza
Amaxwebhu kunye nemizekelo ye-Bootstrap typography, kuquka iisetingi zehlabathi, izihloko, isicatshulwa somzimba, uluhlu, kunye nokunye.
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
.
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
Sebenzisa iiklasi eziluncedo ezibandakanyiweyo ukwenza kwakhona okubhaliweyo okuncinci okusesekondari okubhaliweyo ukusuka kwiBootstrap 3.
Iimpawu zentloko zemveli zenzelwe ukusebenza kakuhle kwinyama yomxholo wekhasi lakho. Xa ufuna isihloko ukuze ugqame, cinga ukusebenzisa isihloko esiboniswayo—isihloko esikhulu, esinoluvo olungakumbi.
Umboniso 1 |
Umboniso 2 |
Umboniso 3 |
Umboniso 4 |
Yenza umhlathi ugqame ngokongeza .lead
.
Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.
Isimbo sezinto eziqhelekileyo ezingaphakathi kwe-HTML5.
Ungasebenzisa i-mark tag 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 olucolekileyo.
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.
Guqula ulungelelwaniso lombhalo, uguqule, isitayile, ubunzima, kunye nombala ngezixhobo zethu zokubhaliweyo kunye nezixhobo zombala .
Uzalisekiso olucwangcisiweyo lwesiqalelo se-HTML <abbr>
kwizifinyezo kunye nee-akhronimi ukubonisa inguqulelo eyandisiweyo 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
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.
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.
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.
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
Susa iibhulethi zoluhlu kwaye usebenzise ukukhanya margin
kunye nendibaniselwano yeeklasi ezimbini, .list-inline
kunye .list-inline-item
.
- Lorem ipsum
- Phasellus iaculis
- Nulla volutpat
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.
Uchwethezo oluphendulayo lubhekiselele ekulinganiseni okubhaliweyo kunye namalungu ngokunyenyisa ngokulula ingcambu yelungu font-size
ngaphakathi koluhlu lwemibuzo yemidiya. I-Bootstrap ayikwenzeli oku, kodwa kulula ukongeza ukuba uyayifuna.
Nanku umzekelo walo xa usebenza. Khetha nayiphi font-size
na imibuzo kunye nemidiya oyinqwenelayo.