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.
you can set div's height: 6em
, restore height: auto
when "read more" link clicked. example: http://jsfiddle.net/jv7dj/1/.
Comments
Post a Comment