in English
Text truncation
Truncate awọn gbolohun ọrọ gigun pẹlu ellipsis.
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
.
Ọrọ yii gun pupọ, ati pe yoo ge ni kete ti o han.
<!-- 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>