2014-01-29 49 views
0

我想我的html页面上打印内容页脚的底部,而打印

格式是

<div class="header">Title of the page</div> 

<div class="main">Content of the page</div> 

<div class="footer">Footer of the page</div> 

<div class="page-break"></div> 

<div class="header">Title of the page</div> 

<div class="main">Content of the page</div> 

<div class="footer">Footer of the page</div> 

<div class="page-break"></div> 

<div class="header">Title of the page</div> 

<div class="main">Content of the page</div> 

<div class="footer">Footer of the page</div> 

<div class="page-break"></div> 

所以有三个页面,页面是动态添加和这个CSS帮助我打破印刷时页面

.page.break{ 
    page-break-after:always 
} 

问题是页脚出现在主div后面,我希望它始终处于页面底部。

任何帮助?

+0

因此您只需要一个页脚? – DhruvJoshi

+0

不,我想在每个页面的页脚。但是在每个页面的底部,而不是内容结束的地方 – 1Mayur

回答

0

中添加这个CSS到您的页脚股利,它应该解决您的问题

在这个线程类似
style="clear: both;"