Truncate paragraph first 100 character and hide rest content of paragraph to show/hide rest contenct with more/less link

后端 未结 6 682
一向
一向 2020-12-01 03:14

I have paragraph which has more than 500 character. I want to get only initial 100 character and hide rest of it. Also I want to insert \"More\" link next to 100 character.

6条回答
  •  余生分开走
    2020-12-01 03:46

    It's not a top google result, but I've used the jQuery Expander plugin to great success. It's nice because it doesn't hide anything from search engine robots.

提交回复
热议问题