Rekọja si akoonu akọkọ Rekọja si lilọ kiri awọn docs
Check
in English

Text truncation

Truncate awọn gbolohun ọrọ gigun pẹlu ellipsis.

Fun akoonu to gun, o le ṣafikun .text-truncatekilasi kan lati ge ọrọ naa pẹlu ellipsis. Nbeere display: inline-blocktabi display: block.

Ọrọ yii gun pupọ, ati pe yoo ge ni kete ti o han.
Ọrọ yii gun pupọ, ati pe yoo ge ni kete ti o han.
html
<!-- 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>