Yeqela kokuqukethwe okuyinhloko Yeqela ku-docs navigation
Check
in English

Ukunqanyulwa kombhalo

Nciphisa iyunithi yezinhlamvu ezinde zombhalo nge-ellipsis.

Ukuze uthole okuqukethwe okude, ungakwazi ukwengeza .text-truncateiklasi ukuze unciphise umbhalo nge-ellipsis. Idinga display: inline-blocknoma display: block.

Lo mbhalo mude impela, futhi uzoncishiswa uma usubonisiwe.
Lo mbhalo mude impela, futhi uzoncishiswa uma usubonisiwe.
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>