我有 html 用于呈现 PDF 文件,我需要将<tfoot>
部分始终显示在每个页面的底部,即使页面内容很小。
<div class="pdf-position-top pdf-content-center">
<table>
<thead>
<tr>
<th>
<div class="print-banner">
<span class="banner-text-repeat">Some Text</span>
</div>
</th>
</tr>
</thead>
@RenderSection("TableBody", required: true)
<tr>
<td>
<div class="pdf-content-center">@RenderBody()</div>
</td>
</tr>
<tfoot>
<tr>
<td>
<!--START print-banner top-->
<div class="print-banner">
<span class="banner-text-repeat">Some Text</span>
</div>
</td>
</tr>
</tfoot>
</table>
</div>
答案 0 :(得分:1)
From documentation of header/footer
var myObserver = {
next: (val) => {},
error: (err) => {},
complete: () => {}
};
var mySubscription: Subscription = myObservable.subscribe(myObserver);
// then, if later you want to unsubscribe:
mySubscription.unsubscribe()