javascript - How does Facebook implement it's "see more" feature on post text content. -


i want cut off post text content @ either 6 lines or number of word characters. fortunately, after using this jquery plugin, have managed cut off post text content @ number of word characters.

what remaining cut off post text content @ 6 lines. it's unfortunate this jquery plugin can't it. need anyone's on this. image below illustrates want implement.

facebook "see more" style

you can set div's height: 6em, restore height: auto when "read more" link clicked. example: http://jsfiddle.net/jv7dj/1/.


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -