Скрипт обрезающий текст выходящий за рамки контейнера.
Сайт автора и полная документация (англ.): dotdotdot.frebsite.nl
1. Только текст:
до:
после:
2. Текст с разметкой:
до:
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
It has survived not only five centuries, but also the leap into electronic typesetting.
после:
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
It has survived not only five centuries, but also the leap into electronic typesetting.
3. С кнопкой "читать далее":
до:
после:
4. Адаптивный вариант в блоке с изменяющися размером:
до:
после:
5. С раскрытием всего текста
до:
после:
6. С укорачиванием урл в тексте
до:
после: