我想使用slideToggle获取文本,就像read more
的作品一样。更特别的是,第一行显示,当客户点击div时,全文显示。jquery slideToggle()第一行显示
<div class="group-one-row">
<div class="row-header">
<p class="group-regular-header">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s
</p>
</div>
</div>
$('.row-header').on('click', function() {
$(this).parent().find('p').slideToggle();
});
通过此代码,我可以显示/隐藏全文,但我需要第一行始终显示。
显示您的代码。 – TAM
http://2015.grind.digital/m2/cafo/groups.php 这是链接。 –