我试图在一个生成的pdf文件中得到一个页脚。我正在使用这个库https://github.com/andyhutch77/MvcRazorToPdf
有没有办法把我的一些内容放到页面的底部?不幸的是,pdf没有回应position:absolute; bottom:0px;或保证金底部。
该页面在页面上显示了未知数量的记录,因此我不能静态地这样做。
发布于 2014-03-03 08:11:15
我找到了解决这个问题的方法。它不是很整洁,但我怀疑还有其他方法,因为MvcRazorToPdf不支持保证金和职位风格。
<table id="wrapper" style="height:100%;">
<tr>
<td valign="top">
Put your site content here.
</td>
</tr>
<tr>
<td valign="bottom">
Put your footer here.
</td>
</tr>
</table>https://stackoverflow.com/questions/22096032
复制相似问题