【发布时间】:2014-07-08 15:39:29
【问题描述】:
我在 pdf 报告中有一个标题,当标题被编辑时,标题的高度将保持不变,而我的 header.html.erb 看起来像这样 -
<div id="custom_header">
<div style="margin-top: 30px;"></div>
<%= HeaderFooterDesign.custom_header %>
</div>
<style>
#custom_header {
position: fixed;
top: 0px;
left: 0;
bottom:0;
width: 100%;
height:200px;
}
body {
top: 0px;
height:200px;
width: auto;
}
现在我给出了高度:200px;在css中,如果高度更大或高度超过给定的限制,标题将正确显示到某个给定高度,然后标题不会显示在pdf报告中所以我正在寻找dynamic height with position fixed factors我Dont want Scroll header所以任何人都可以帮助我
【问题讨论】:
标签: ruby-on-rails css wicked-pdf