in English
truncation téks
Potong senar panjang téks nganggo elipsis.
Pikeun eusi anu langkung panjang, anjeun tiasa nambihan .text-truncate
kelas pikeun motong téks nganggo elipsis. Merlukeun display: inline-block
atawa display: block
.
Téks ieu rada panjang, sareng bakal dipotong saatos ditampilkeun.
<!-- Block level -->
<div class="row">
<div class="col-2 text-truncate">
This text is quite long, and will be truncated once displayed.
</div>
</div>
<!-- Inline level -->
<span class="d-inline-block text-truncate" style="max-width: 150px;">
This text is quite long, and will be truncated once displayed.
</span>