ThreeDots (jQuery plugin) truncates everything
I've been trying to implement the ThreeDots plugin (http://tpgblog.com/2009/12/21/threedots-the-jquery-ellipsis-plugin/) on the project I'm working on.
The problem I'm having is that when I attempt to use it, it truncates the ENTIRE text. For example, the text goes from:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit.
I开发者_C百科n mi eros, adipiscing placerat molestie ut, commodo eget risus. Maecenas lorem risus, vulputate id venenatis nec, scelerisque vitae urna."
to:
"..."
when I want something like:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br/>
In mi eros, adipiscing placerat molestie ut, commodo eget..."<br/>
I suspect that maybe the image tag contained within the <div>
tag is causing the problem, but at the same time, the "threedots" attribute of the <div>
tag becomes the full text of the span
like it's supposed to, so I'm inclined to think that's not the problem.
Any ideas?
Your text must be inside a span element with a css class 'ellipsis_text' (can be changed). Did you set the parameters correctly? Show your code.
精彩评论