开发者

Jquery add ellipse (...) and truncate text based on height not width

开发者 https://www.devze.com 2023-01-01 15:29 出处:网络
I have found many ways to measure width and to truncate text using开发者_Python百科 jquery, but I can\'t find one based on height.

I have found many ways to measure width and to truncate text using开发者_Python百科 jquery, but I can't find one based on height.

I am limited to two lines of text or it will knock my design out of canter.

So does anyone know a method of limiting a paragraph to two lines high, tuncating it and adding an elipse ?


CSS overflow with a <div>...</div> positioned at the bottom?

0

精彩评论

暂无评论...
验证码 换一张
取 消