2012-07-02 21 views
0

我們使用BIRT報表生成HTML文件,它適用於IE 6,但它不能在IE 8BIRT的分頁符不能在IE瀏覽器8

我下載的BIRT生成的HTML工作,修改它來測試。最後,我找到了直接編輯HTML文件的解決方案(請參閱http://basdebie.com/problem-solvers/ie-8-page-break-afteralways-problem/)。

但問題是我無法在每個頁面中添加CSS。我將它添加到body標籤後,它只顯示在第一頁。但表格會顯示在每個頁面中。是否有任何解決方案將其添加到BIRT的每個頁面中?

<body> 
    <text id="896"> 
     <property name="contentType">auto</property> 
     <text-property name="content"><![CDATA[ ]]></text-property> 
    </text> 
    <table id="16"> 
     <property name="width">100%</property> 
     <property name="dataSet">Data Set</property> 

回答

0

我在頁眉中添加了一個文本元素,它現在在IE 8中工作。

 <page-header> 
      <text id="897"> 
       <property name="contentType">auto</property> 
       <text-property name="content"><![CDATA[ ]]></text-property> 
      </text> 
     </page-header> 

BIRT在每個頁面中生成代碼。

 <div> 
      <div id="AUTOGENBOOKMARK_1" style=" text-align:left;">&nbsp;</div> 
     </div> 
相關問題