Typography
Zvinyorwa uye mienzaniso yeBootstrap typography, inosanganisira zvigadziriso zvepasi rose, misoro, zvinyorwa zvemuviri, zvinyorwa, nezvimwe.
Bootstrap inoseta kuratidzwa kwepasirese, kutaipa, uye mataira ekubatanidza. Kana kutonga kwakawanda kuchidikanwa, tarisa zvinyorwa zvekushandisa makirasi .
- Shandisa yakasarudzika font stack inosarudza yakanakisa
font-family
kune yega yega OS uye mudziyo. - Kuti uwedzere kusanganisirwa uye kusvikika mhando chiyero, isu tinofungidzira iyo browser default midzi
font-size
(kazhinji 16px) kuitira kuti vashanyi vagone kugadzirisa yavo browser defaults sezvinodiwa. - Shandisa iyo
$font-family-base
,$font-size-base
, uye$line-height-base
hunhu seyedu typographic base inoshandiswa kune iyo<body>
. - Seta iyo yepasi rose yekubatanidza ruvara kuburikidza
$link-color
uye shandisa link underlines chete pa:hover
. - Shandisa
$body-bg
kuseta abackground-color
pane<body>
(#fff
nekusarudzika).
Aya masitayera anogona kuwanikwa mukati _reboot.scss
, uye machinjiro epasi rose anotsanangurwa mu _variables.scss
. Iva nechokwadi chekuisa $font-size-base
mukati rem
.
Yese misoro yeHTML, <h1>
kuburikidza ne <h6>
, iripo.
Heading | Muenzaniso |
---|---|
|
h1. Bootstrap musoro |
|
h2. Bootstrap musoro |
|
h3. Bootstrap musoro |
|
h4. Bootstrap musoro |
|
h5. Bootstrap musoro |
|
h6. Bootstrap musoro |
.h1
kuburikidza .h6
nemakirasi anowanikwawo, nekuti kana iwe uchida kufananidza font yemusoro wenyaya asi usingakwanise kushandisa yakabatana HTML element.
h1. Bootstrap musoro
h2. Bootstrap musoro
h3. Bootstrap musoro
h4. Bootstrap musoro
h5. Bootstrap musoro
h6. Bootstrap musoro
Shandisa makirasi ekushandisa akasanganisirwa kugadzirazve diki diki musoro wemusoro kubva kuBootstrap 3.
Zvinyorwa zvemusoro zvechinyakare zvakagadzirirwa kushanda zvakanyanya munyama yezvinyorwa zvepeji rako. Paunenge uchida musoro kuti uoneke, funga kushandisa musoro wekuratidza - muhombe, une maonero emusoro zvishoma.
Ratidza 1 |
Ratidza 2 |
Ratidza 3 |
Ratidza 4 |
Ita kuti ndima ibude pachena nekuwedzera .lead
.
Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.
Kutaera kune zvakajairika inline HTML5 zvinhu.
Unogona kushandisa mamaki tag kuhighlighttext.
Mutsetse wemavara uyu unofanirwa kubatwa semavara akadzimwa.
Mutsara wechinyorwa uyu unoitirwa kuti utorerwe seusisina chokwadi.
Mutsara wechinyorwa uyu unofanirwa kubatwa sewedzero kugwaro.
Mutsara wemavara uyu unozopa sekunyorwa kwazvakaitwa
Mutsara wechinyorwa uyu unoitirwa kubatwa sechinyorwa chakanaka.
Mutsetse uyu wakashandurwa semavara matema.
Mutsetse uyu unoitwa semavara akatsveyamiswa.
.mark
uye .small
makirasi anowanikwawo kuti ashandise zvitaera zvakafanana <mark>
uye <small>
uchidzivirira chero zvisingadiwe semantic zvinorehwa nematagi.
Kunyange zvisina kuratidzwa pamusoro, inzwa wakasununguka kushandisa <b>
uye <i>
muHTML5. <b>
inoitirwa kuratidza mazwi kana mitsara pasina kuendesa kukosha kwekuwedzera asi <i>
kazhinji iri yezwi, tekinoroji mazwi, nezvimwe.
Shandura kurongeka kwemavara, shandura, chimiro, uremu, uye ruvara nezvinyorwa zvedu zvinoshandiswa uye zvemavara zvinoshandiswa .
Kuitwa kwakamisikidzwa kweHTML's <abbr>
element yekupfupisa uye acronyms kuratidza yakawedzera vhezheni pane hover. Mapfupi ane default underline uye kuwana yekubatsira cursor yekupa mamwe mamiriro pane hover uye kune vashandisi veanobatsira matekinoroji.
Wedzera .initialism
kuchidimbu chemavara madiki zvishoma.
attr
HTML
Zvekutora zvivharo zvemukati kubva kune imwe sosi mukati megwaro rako. Putira <blockquote class="blockquote">
kutenderedza chero HTML se quote.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat ante.
Wedzera a <footer class="blockquote-footer">
yekuziva kwakabva. Peta zita rekwakabva basa mu <cite>
.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat ante.
Shandisa zvinyorwa zvinoshandiswa sezvinodiwa kuti uchinje kurongeka kwe blockquote yako.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat ante.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat ante.
Bvisa iyo yakasarudzika list-style
uye yekuruboshwe muganho pane rondedzero zvinhu (pakarepo vana chete). Izvi zvinongoshanda kune ipapo vana rondedzero zvinhu , zvichireva kuti iwe uchafanirwa kuwedzera kirasi kune chero rondedzero yakanyorwa zvakare.
- Lorem ipsum dolor sit amet
- Consectetur adipiscing elit
- Integer molestie lorem at massa
- Facilisis mu pretium nisl aliquet
- Nulla volutpat aliquam velit
- Phasellus iaculis neque
- Purus sodales ultricies
- Vestibulum laoreet porttitor sem
- Ac tristique libero volutpat at
- Faucibus porta lacus fringilla vel
- Aenean sit amet erat nunc
- Eget porttitor lorem
Bvisa mabara erondedzero uye shandisa mwenje margin
une musanganiswa wemakirasi maviri, .list-inline
uye .list-inline-item
.
- Lorem ipsum
- Phasellus iaculis
- Nulla volutpat
Gadzirisa mazwi uye tsananguro zvakachinjika nekushandisa grid system yedu yakafanotsanangurwa makirasi (kana semantic musanganiswa). Kwematemu marefu, unogona kusarudza kuwedzera .text-truncate
kirasi kuderedza zvinyorwa ne ellipsis.
- Tsanangudzo mazita
- Rondedzero yerondedzero yakakwana pakutsanangura mazwi.
- 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.
- Izwi rakadimburirwa rakadimburwa
- Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
- Nesting
-
- Nested tsanangudzo list
- Aenean posuere, tortor sed cursus feugiat, nunc augue blandit nunc.
Responsive typography inoreva kuyera zvinyorwa uye zvikamu nekungogadzirisa iyo midzi element font-size
mukati meakatevedzana emibvunzo midhiya. Bootstrap haikuitire izvi, asi zviri nyore kuwedzera kana uchiida.
Heino muenzaniso wazvo mukuita. Sarudza chero font-size
s uye midhiya mibvunzo yaunoda.