我正在使用 jquery 和 html 代码在我的网站上使用展开折叠:
<script>
$(document).ready(function () {
    $('.fulltext').hide();
    $('.blog-item .readmore').click(function (event) {
        event.preventDefault();
        $(this).parent().find('.fulltext').slideToggle('slow');
        $(this).text($(this).text() == 'Close Deals' ? 'More Deals' : 'Close Deals');
    });
});
</script>
html:
<div class="blog-item">
        <p class='fulltext'>Read more text will be here.</p>
    <a class="readmore" href="#">Read more..</a>
</div>
实际上我想在隐藏文本中使用表格,现在是:<p class='fulltext'>Read more text will be here.</p>
但是当我在全文中使用表格时,它停止工作。请任何建议。