Text overflow plugin jQuery.dotdotdot.js How to use

Plug-in download address: https: //github.com/frdh/jQuery.dotdotdot

introduced jQuery.js and jQuery.dotdotdot.js

       

to set a wide high in the element, which will trigger the effect after the text exceeds this height

 Test test test test test test test test test test test test test test test test test test Test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test Test test test test test test test  
$ ("). Dotdotdot ();}
There is a omitted number plus self-defined content:

Test test test test test test test test test test test test test test test test Test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test Test test test test test test test test
Read more
  $ (function () {$ (". Box02"). DotdotDOT ({after: 'a'});}); 
has an expansion / collaborator:
Test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test Test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test
.pened {height: Auto;} .Toggle .close, .opened .Toggle .open {Display: none;} .toggle .opened, .opened .Toggle .close {Display: inline;}

var $ dot = $ (‘ .box03 ‘); $ dot.append (‘

[+]
‘); function createDOTS () {$ dot.dotdotdot ({After : ‘a.toggle’};} Function DestroyDots () {$ dot.trigger (‘destroy’);} createDots (); $ dot.on (‘click “,’ a.toggle ‘, function () {$ Dot.ToggleClass (‘Opened’); IF ($ dot.hasclass (‘Opened’)){DESTROYDOTS ();} else {create;};
  
The above is the text overflow plug-in plug-in that Xiaobian gives you JQuery.dotdotdot.js use method, I hope to help everyone, if you have any questions, please leave a message, Xiaobian will reply to everyone in time. Thank you very much for your support of Tumi Cloud Website!
© Copyright Notice
THE END
Just support it if you like
like0
share
comment Grab the couch

Please log in to comment