2012-02-22 133 views
1

我使用遊戲框架。我能夠使用PDF模塊生成PDF。我在這裏的問題是,我要添加的表頭在每一頁。這裏是我的代碼表標題中播放框架PDF模塊

<table width="100%" border="1" id="example" cellspacing="0" cellpadding="0" style="border-collapse: collapse" class="-fs-table-paginate: paginate;"> 
       <thead> 
        <tr> 
         <th align="center"><b>Items</b></th> 
         <th align="center"><b>Quantity</b></th> 
         <th align="center"><b>Unit Price</b></th> 
         <th align="center"><b>Amount(Rs).</b></th> 
        </tr> 
       </thead> 
..... 
</table> 

我看到here。我增加-fs表-PAGINATE:分頁;在班級attibute。但是,表頭是不會在未來繼續頁。 我不知道怎麼用這個。你能幫我嗎?

編輯:可以anyont請幫我....

回答

1

您應該添加 「-fs表-PAGINATE:分頁;」到樣式屬性,而不是類屬性:

<table width="100%" border="1" id="example" cellspacing="0" cellpadding="0" style="border-collapse: collapse; -fs-table-paginate: paginate;">