If you have found a specific number of characters in a word, the text that exceeds the number of characters will display the ellipsis... and then the [Expand] Or ellipsis will appear. After you click it, all content will appear.
<P id = "hutia"> I am the author of hutia, a long and legendary text. I am hutia, author of a long and legendary article. I am hutia, author of a long and legendary article. I am hutia, author of a long and legendary article. I am hutia, author of a long and legendary article. I am hutia, author of a long and legendary article. I am hutia, author of a long and legendary article. I am hutia, author of a long and legendary article. I am hutia, author of a long and legendary article. I am hutia, author of a long and legendary article. I am hutia, author of a long and legendary article. I am hutia, author of a long and legendary article. I am hutia, author of a long and legendary article. I am hutia, author of a long and legendary article. </P> script (function () {var o = document. getElementById ("hutia"); var s = o. innerHTML; var p = document. createElement ("span"); var n = document. createElement ("a"); p. innerHTML = s. substring (1, 0,100); n. innerHTML = s. length> 100? "... ":" "; N. href = "###"; n. onclick = function () {if (n. innerHTML = "... ") {n. innerHTML = "hide"; p. innerHTML = s;} else {n. innerHTML = "... "; p. innerHTML = s. substring (0,100) ;}} o. innerHTML = ""; o. appendChild (p); o. appendChild (n) ;}) (); script
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]