文本溢出和多行div? [英] text-overflow and multiple line div?
本文介绍了文本溢出和多行div?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想用text-overflow:ellipsis创建多行div,但div只有一行。
请参阅示例:
http://cssdesk.com/CDS4V
谢谢
解决方案
我想要一个类似的效果,我最终使用 jquery dotdotdot插件。我发现它很容易使用,它的工作方式像魔术一样:)
I want to create multiline div with text-overflow: ellipsis but the div has only one line.
see example: http://cssdesk.com/CDS4V
thanks
解决方案
I was wanting a similar effect, and I ended up using the jquery dotdotdot plugin. I found it pretty easy to use and it worked like magic :)
这篇关于文本溢出和多行div?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文