Rach gu prìomh shusbaint Air adhart gu seòladh docs
Check
in English

Gearradh teacsa

Gearr sreathan fada de theacsa le ellipsis.

Airson susbaint nas fhaide, faodaidh tu .text-truncateclas a chuir ris gus an teacsa a ghearradh le ellipsis. Feumaidh display: inline-blockno display: block.

Tha an teacsa seo gu math fada, agus thèid a ghearradh sìos nuair a thèid a thaisbeanadh.
Tha an teacsa seo gu math fada, agus thèid a ghearradh sìos nuair a thèid a thaisbeanadh.
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>