in English
Matnni kesish
Uzun matn satrlarini ellips bilan qisqartiring.
Uzunroq tarkib uchun siz .text-truncate
matnni ellips bilan kesish uchun sinf qo'shishingiz mumkin. Talab qiladi display: inline-block
yoki display: block
.
Ushbu matn juda uzun va ko'rsatilgandan keyin kesiladi.
<!-- 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>