Ọrọ
Iwe ati awọn apẹẹrẹ fun awọn ohun elo ọrọ ti o wọpọ lati ṣakoso titete, murasilẹ, iwuwo, ati diẹ sii.
Titete ọrọ
Ni irọrun ṣe atunṣe ọrọ si awọn paati pẹlu awọn kilasi titete ọrọ.
Diẹ ninu awọn ọrọ ibi ipamọ lati ṣe afihan titete ọrọ idalare. Ṣe iwọ yoo ṣe kanna fun mi? O to akoko lati koju orin naa Emi kii ṣe muse rẹ mọ. Gbọ pe o lẹwa, jẹ onidajọ ati awọn ọmọbirin mi yoo gba ibo kan. Mo le rilara phoenix kan ninu mi. Orun njowu ife wa, Angeli nsokun lat‘oke wa. Bẹẹni, o mu mi lọ si utopia.
<p class="text-justify">Some placeholder text to demonstrate justified text alignment. Will you do the same for me? It's time to face the music I'm no longer your muse. Heard it's beautiful, be the judge and my girls gonna take a vote. I can feel a phoenix inside of me. Heaven is jealous of our love, angels are crying from up above. Yeah, you take me to utopia.</p>
Fun apa osi, sọtun, ati titete aarin, awọn kilasi idahun wa ti o lo awọn aaye fifọ iwọn wiwo kanna gẹgẹbi eto akoj.
Ọrọ ti o ni ibamu si apa osi lori gbogbo awọn iwọn wiwo wiwo.
Ọrọ ti o ni ibamu laarin gbogbo awọn titobi wiwo.
Ọrọ titọ ọtun lori gbogbo awọn iwọn wiwo wiwo.
Ọrọ ti o ni ibamu si apa osi lori awọn ibudo wiwo ti o ni iwọn SM (kekere) tabi gbooro.
Ọrọ ti o ni ibamu si apa osi lori awọn ibudo wiwo ti iwọn MD (alabọde) tabi gbooro.
Ọrọ ti o ni ibamu si apa osi lori awọn ibudo wiwo ti o ni iwọn LG (tobi) tabi gbooro.
Ọrọ ti o ni ibamu si apa osi lori awọn ibudo wiwo ti o ni iwọn XL (afikun-tobi) tabi gbooro.
<p class="text-left">Left aligned text on all viewport sizes.</p>
<p class="text-center">Center aligned text on all viewport sizes.</p>
<p class="text-right">Right aligned text on all viewport sizes.</p>
<p class="text-sm-left">Left aligned text on viewports sized SM (small) or wider.</p>
<p class="text-md-left">Left aligned text on viewports sized MD (medium) or wider.</p>
<p class="text-lg-left">Left aligned text on viewports sized LG (large) or wider.</p>
<p class="text-xl-left">Left aligned text on viewports sized XL (extra-large) or wider.</p>
Ọrọ murasilẹ ati aponsedanu
Fi ipari si ọrọ pẹlu .text-wrap
kilasi kan.
<div class="badge badge-primary text-wrap" style="width: 6rem;">
This text should wrap.
</div>
Dena ọrọ lati murasilẹ pẹlu .text-nowrap
kilasi kan.
<div class="text-nowrap bd-highlight" style="width: 8rem;">
This text should overflow the parent.
</div>
Fun akoonu to gun, o le ṣafikun .text-truncate
kilasi kan lati ge ọrọ naa pẹlu ellipsis. Nbeere display: inline-block
tabi display: block
.
<!-- Block level -->
<div class="row">
<div class="col-2 text-truncate">
Praeterea iter est quasdam res quas ex communi.
</div>
</div>
<!-- Inline level -->
<span class="d-inline-block text-truncate" style="max-width: 150px;">
Praeterea iter est quasdam res quas ex communi.
</span>
Bireki ọrọ
Ṣe idilọwọ awọn gbolohun ọrọ gigun lati fifọ ifilelẹ awọn paati rẹ nipa lilo .text-break
lati ṣeto word-wrap: break-word
ati word-break: break-word
. A lo word-wrap
dipo ti o wọpọ julọ overflow-wrap
fun atilẹyin aṣawakiri ti o gbooro, ati ṣafikun ohun ti a ti sọ silẹ word-break: break-word
lati yago fun awọn ọran pẹlu awọn apoti fifọ.
mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
<p class="text-break">mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm</p>
Ọrọ iyipada
Yi ọrọ pada ni awọn paati pẹlu awọn kilasi titobi ọrọ.
Ọrọ isale.
Ọrọ ti o ni oke.
CapiTaliZed ọrọ.
<p class="text-lowercase">Lowercased text.</p>
<p class="text-uppercase">Uppercased text.</p>
<p class="text-capitalize">CapiTaliZed text.</p>
Ṣe akiyesi bi .text-capitalize
o ṣe yipada lẹta akọkọ ti ọrọ kọọkan, nlọ ọran ti eyikeyi awọn lẹta miiran ti ko ni ipa.
Font àdánù ati italics
Ni kiakia yi iwuwo (igboya) ọrọ pada tabi italicize ọrọ.
Ọrọ ti o ni igboya.
Ọrọ iwuwo bolder (ojulumo si ano obi).
Ọrọ iwuwo deede.
Ọrọ iwuwo ina.
Fẹẹrẹfẹ ọrọ ọrọ (ojulumo si awọn obi ano).
Ọrọ italic.
<p class="font-weight-bold">Bold text.</p>
<p class="font-weight-bolder">Bolder weight text (relative to the parent element).</p>
<p class="font-weight-normal">Normal weight text.</p>
<p class="font-weight-light">Light weight text.</p>
<p class="font-weight-lighter">Lighter weight text (relative to the parent element).</p>
<p class="font-italic">Italic text.</p>
Monospace
Yi yiyan pada si akopọ fonti monospace wa pẹlu .text-monospace
.
Eyi wa ni monospace
<p class="text-monospace">This is in monospace</p>
Tun awọ
Ṣe atunto ọrọ tabi awọ ọna asopọ pẹlu .text-reset
, ki o le jogun awọ lati ọdọ obi rẹ.
Ọrọ ti o dakẹ pẹlu ọna asopọ atunto .
<p class="text-muted">
Muted text with a <a href="#" class="text-reset">reset link</a>.
</p>
Ọṣọ ọrọ
Yọ ohun ọṣọ ọrọ kuro pẹlu .text-decoration-none
kilasi kan.
<a href="#" class="text-decoration-none">Non-underlined link</a>