2010-04-21 65 views
1

我正在用BIRT 2.5使用外部CSS设计报表。当BIRT呈现html报告时,它会在生成的html中为每个外部样式创建内联样式(name style_x)的副本。Eclipse BIRT - 呈现HTML时使用外部CSS的不必要的内联样式

的report.design包含:

<list-property name="cssStyleSheets"> 
<structure> 
<property name="fileName">… mycss.css</property> 
<property name="externalCssURI"> http://.../mycss.css </property> 
</structure> 
</list-property> 

生成的HTML包含:

<style type="text/css"> 
.style_0 {…} 
.style_1 {…} 
…. 

</style> 
<link rel="stylesheet" type="text/css" href="http://.../mycss.css"></link> 

对于我的风格每个参考,呈现的HTML元素中使用这两种风格通常是这样的:

<div class="style_x myclass" …. > …. </div> 

有什么办法在呈现html时摆脱无用的内联样式?

回答