任何实现在设置循环1的情况下HTML表格指定内容部分不参与循环

目的就是让合计参数内容只在最后一页显示。注:本身是最后一页显示的,但是现在需要在循环行数设置为1的情况下。合计不参与每页循环

你是把合计的内容当做一条记录了吗?

关键我已经在循环结束后加的段落了,如果我设置上面的H2循环及设置循环行数为1 ,合计会在每一页都会参与循环

循环的代码贴出来看看

 

您好,我是有问必答小助手,您的问题已经有小伙伴解答了,您看下是否解决,可以追评进行沟通哦~

如果有您比较满意的答案 / 帮您提供解决思路的答案,可以点击【采纳】按钮,给回答的小伙伴一些鼓励哦~~

ps:问答VIP仅需29元,即可享受5次/月 有问必答服务,了解详情>>>https://vip.csdn.net/askvip?utm_source=1146287632

<table bordercolor="#000000" style="height: 52px; border-collapse: collapse;" bgcolor="#ffffff" border="1" cellspacing="1" cellpadding="1" heihgt="">
    <tbody>
        <tr class="firstRow">
            <td width="22%" height="28">
                <p style="text-align: center;">
                    <span style="background-color: rgb(255, 255, 255);">使用日期</span>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                </p>
            </td>
            <td width="169" height="28">
                <p style="text-align: center;">
                    费用备注
                </p>
            </td>
            <td width="102" height="28">
                <div align="center">
                    费用金额
                </div>
            </td>
            <td height="28">
                <p style="text-align: center;">
                    报销人员
                </p>
            </td>
            <td width="116" height="28" style="-ms-word-break: break-all;">
                <p>
                    <span style="font-family: arial, helvetica, sans-serif; font-size: 16px;">&nbsp; &nbsp; &nbsp;关联项目</span>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                </p>
            </td>
        </tr>
    </tbody><!--H2-->
    <tbody>
        <tr>
            <td height="25" style="-ms-word-break: break-all;">
                <div align="center">
                    <span style="background-color: rgb(255, 255, 255);">zbintel_order1</span>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                </div>
            </td>
            <td width="38" height="25" style="-ms-word-break: break-all;">
                <div align="center">
                    <p>
                        <span style="font-family: arial, helvetica, sans-serif; font-size: 14px;">zbintel_fy_intro</span>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                    </p>
                </div>
            </td>
            <td width="102" height="25" style="-ms-word-break: break-all;">
                zbintel_fy_money
            </td>
            <td height="25">
                <div align="center">
                    zbintel_fy_cateid
                </div>
            </td>
            <td width="30" height="25" style="-ms-word-break: break-all;">
                <p>
                    <span style="font-family: arial, helvetica, sans-serif; font-size: 16px;">&nbsp; &nbsp; &nbsp;l_chance</span>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                </p>
            </td>
        </tr><!--/H2-->
        <tr>
            <td height="19" style="-ms-word-break: break-all;">
                <div align="right">
                    &nbsp; &nbsp; &nbsp;
                </div>
            </td>
            <td width="170" height="19" style="-ms-word-break: break-all;">
                <p>
                    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                </p>
            </td>
            <td width="434" height="19" colspan="3">
                &nbsp;
            </td>
        </tr>
    </tbody>
</table>
<p>
    合计:zbintel_bx_allmoney
</p>

 

非常感谢您使用有问必答服务,为了后续更快速的帮您解决问题,现诚邀您参与有问必答体验反馈。您的建议将会运用到我们的产品优化中,希望能得到您的支持与协助!

速戳参与调研>>>https://t.csdnimg.cn/Kf0y