Ukuthayipha
Amadokhumenti nezibonelo ze-Bootstrap typography, okuhlanganisa izilungiselelo zomhlaba, izihloko, umbhalo womzimba, izinhlu, nokuningi.
Izilungiselelo zomhlaba jikelele
I-Bootstrap isetha isibonisi somhlaba jikelele esiyisisekelo, i-typography, nezitayela zokuxhumanisa. Uma kudingeka ukulawula okwengeziwe, hlola amakilasi ensiza yombhalo .
- Sebenzisa isitaki sefonti yomdabu ekhetha okungcono kakhulu
font-family
ku-OS ngayinye nedivayisi. - Ukuze uthole uhlobo lwesikali esibandakanyayo nesifinyelelekayo, sithatha impande ezenzakalelayo yesiphequluli
font-size
(imvamisa engu-16px) ukuze izivakashi zikwazi ukwenza ngendlela oyifisayo okuzenzakalelayo kwesiphequluli njengoba kudingeka. - Sebenzisa
$font-family-base
,$font-size-base
, kanye$line-height-base
nezibaluli njengesisekelo sethu sokuthayipha sisetshenziswa ku-<body>
. - Setha umbala wesixhumanisi somhlaba wonke ngokusebenzisa
$link-color
futhi usebenzise isixhumanisi esidwebelayo kuphela kokuthi:hover
. - Sebenzisa
$body-bg
ukusetha okuthibackground-color
(<body>
ngokuzenzakalelayo#fff
).
Lezi zitayela zingatholakala ngaphakathi _reboot.scss
, futhi okuguquguqukayo komhlaba wonke kuchazwe ku _variables.scss
. Qiniseka ukuthi $font-size-base
uyangena rem
.
Izihloko
Zonke izihloko ze-HTML, <h1>
ukuya ku- <h6>
, ziyatholakala.
Isihloko | Isibonelo |
---|---|
|
h1. Isihloko se-Bootstrap |
|
h2. Isihloko se-Bootstrap |
|
h3. Isihloko se-Bootstrap |
|
h4. Isihloko se-Bootstrap |
|
h5. Isihloko se-Bootstrap |
|
h6. Isihloko se-Bootstrap |
.h1
ngamakilasi .h6
nawo ayatholakala, uma ufuna ukufanisa isitayela sefonti yesihloko kodwa awukwazi ukusebenzisa isici se-HTML esihlotshaniswayo.
h1. Isihloko se-Bootstrap
h2. Isihloko se-Bootstrap
h3. Isihloko se-Bootstrap
h4. Isihloko se-Bootstrap
h5. Isihloko se-Bootstrap
h6. Isihloko se-Bootstrap
Ukwenza izihloko ngendlela oyifisayo
Sebenzisa amakilasi ensiza afakiwe ukuze udale kabusha umbhalo omncane wesihloko sesibili ukusuka ku-Bootstrap 3.
Isihloko sesibonisi esihle Esinombhalo wesibili ofiphele
Bonisa izihloko
Izihloko zendabuko zenzelwe ukusebenza kahle kakhulu kokuqukethwe kwekhasi lakho. Uma udinga isihloko ukuze ugqame, cabanga ukusebenzisa isihloko esibonisiwe—isitayela sesihloko esikhulu, esinombono othe xaxa.
Isibonisi 1 |
Isibonisi 2 |
Isibonisi 3 |
Isibonisi 4 |
Ukuhola
Yenza isigaba sigqame ngokungeza .lead
.
I-Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. I-Duis mollis, ayiyona i-commodo luctus.
Izakhi zombhalo osemgqeni
Isitayela sezinto ezijwayelekile ze-HTML5 ezingaphakathi komugqa.
Ungasebenzisa umaki wokumaka ukuzegqamisaumbhalo.
Lo mugqa wombhalo uhloselwe ukuthathwa njengombhalo osusiwe.
Lo mugqa wombhalo uhloselwe ukuthi uthathwe njengongasanembile.
Lo mugqa wombhalo uhloselwe ukuthi uthathwe njengesengezo kudokhumenti.
Lo mugqa wombhalo uzosebenza njengokudwetshelwe
Lo mugqa wombhalo uhloselwe ukuthathwa njengokuphrinta kahle.
Lo mugqa uhunyushwe njengombhalo ogqamile.
Lo mugqa uhunyushwe njengombhalo omalukeke.
.mark
futhi .small
amakilasi ayatholakala ukuze asebenzise izitayela ezifanayo <mark>
futhi <small>
ngenkathi ugwema noma yimiphi imithelela ye-semantic engalethwa omaka.
Nakuba kungaboniswa ngenhla, zizwe ukhululekile ukusebenzisa <b>
futhi <i>
ku-HTML5. <b>
ihloselwe ukugqamisa amagama noma imishwana ngaphandle kokudlulisa ukubaluleka okwengeziwe kuyilapho <i>
ngokuvamile kungokwezwi, amagama obuchwepheshe, njll.
Izinsiza zombhalo
Shintsha ukuqondanisa kombhalo, guqula, isitayela, isisindo, nombala ngezinsiza zethu zombhalo nezinsiza zombala .
Izifinyezo
Ukuqaliswa okunesitayela kwe- <abbr>
elementi ye-HTML yezifinyezo nama-akhronimi ukuze kuboniswe inguqulo enwetshiwe kukuhambisa phezulu. Izifinyezo zinokudwetshwa okuzenzakalelayo futhi zithola ikhesa yosizo ukuze inikeze umongo owengeziwe ku-hambisa phezulu kanye nakubasebenzisi bobuchwepheshe obusizayo.
Engeza .initialism
kusifinyezo sosayizi wefonti omncane kancane.
attr
I-HTML
Izingcaphuno zokuvimba
Ngokucaphuna amabhlogo wokuqukethwe komunye umthombo ngaphakathi kwedokhumenti yakho. Goqa <blockquote class="blockquote">
noma iyiphi i- HTML njengengcaphuno.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. I-integer posuere ilingana ne-ante.
Ukuqamba umthombo
Engeza u-a <footer class="blockquote-footer">
ukuze uthole umthombo. Gcoba igama lomsebenzi womthombo ngesi- <cite>
.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. I-integer posuere ilingana ne-ante.
Ukuqondanisa
Sebenzisa izinsiza zombhalo njengoba kudingeka ukuze uguqule ukuqondanisa kwe-blockquote yakho.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. I-integer posuere ilingana ne-ante.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. I-integer posuere ilingana ne-ante.
Uhlu
Okungabhalwanga isitayela
Susa list-style
imajini ezenzakalelayo nengakwesokunxele ezintweni zohlu (izingane eziseduze kuphela). Lokhu kusebenza kuphela ezintweni ezisheshayo zohlu lwezingane , okusho ukuthi uzodinga ukungeza ikilasi kunoma yiluphi uhlu olufakwe esidlekeni.
- Lorem ipsum dolor sit amet
- I-Consectetur adipiscing elit
- Integer molestie lorem kanye ne-massa
- I-Facilisis ku-pretium nisl aliquet
- I-Nulla volutpat aliquam velit
- I-Phasellus iaculis neque
- I-Purus sodales ultricies
- I-Vestibulum laoreet porttitor sem
- Ac tristique libero volutpat at
- I-Faucibus porta lacus fringilla vel
- Aenean sit amet erat nunc
- Thola i-porttitor lorem
Emugqeni
Susa izinhlamvu zohlu bese usebenzisa ukukhanya margin
okuthile ngenhlanganisela yezigaba ezimbili, .list-inline
kanye .list-inline-item
.
- Lorem ipsum
- Phasellus iaculis
- I-Nulla volutpat
Ukuhlelwa kohlu lwencazelo
Qondanisa amagama nezincazelo ngokuvundlile ngokusebenzisa amakilasi achazwe ngaphambili esistimu yethu yegridi (noma imiksi ye-semantic). Ngamatemu amade, ungakhetha ngokukhetha .text-truncate
iklasi ukuze unciphise umbhalo nge-ellipsis.
- Uhlu lwezincazelo
- Uhlu lwezincazelo luphelele ekuchazeni 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
- I-Etiam porta sem malesuada magna mollis euismod.
- Igama elinqanyuliwe linqanyuliwe
- Fusce dapibus, tellus ac cursus commodo, tor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
- Ukwenza isidleke
-
- Uhlu lwezincazelo ezisidleke
- I-Aenean posuere, i-tortor sed cursus feugiat, i-nunc augue blandit nunc.
I-typography ephendulayo
I- typography ephendulayo isho ukukala umbhalo nezingxenye ngokumane ulungise ingxenye yempande font-size
phakathi kochungechunge lwemibuzo yemidiya. I-Bootstrap ayikwenzeli lokhu, kodwa kulula ukuyengeza uma uyidinga.
Nasi isibonelo sakho ngokusebenza. Khetha noma yimiphi font-size
imibuzo nemidiya oyifisayo.