如何让dotdotdot插件在两个具有相同ID的div中工作?

时间:2014-11-26 17:47:50

标签: html

http://jsfiddle.net/qEsQf/

<div id = "multilinedText">
This text is so big that it won't fit in a single line, maybe we could use two lines or even three!
</div>
<div id = "multilinedText">
This text is so big that it won't fit in a single line, maybe we could use two lines or even three!
</div>
这是小提琴!我无法在几个div上加载它!有没有一个解决方案或其他插件做同样的事情??

祝你好运

1 个答案:

答案 0 :(得分:0)

正如j08691建议:http://jsfiddle.net/qEsQf/344/

$(".multilinedText").dotdotdot();