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 - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -